• 25-07-2010, 10:55:05
    #1
    yapmak istediğim test.com/8 ve test.com/8/ yazdığı zaman mod_rewrite ile arkada index.php?id=8 şeklinde işlemesi, yazdığım htaccessde 2. şekildeki (test.com/8/ olan) çalışmıyor

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^([0-9]+)(/)?$ /index.php?id=$1 [QSA]
    ErrorDocument 404 /404.html

    ne yapmak gerekiyor acaba ?
  • 25-07-2010, 11:40:24
    #2
    şu an bana sadece test.com/8/ i test.com/8 e yönlendirecek htaccess kodu lazım
  • 25-07-2010, 17:18:24
    #3
    Alıntı
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^([0-9]+)$ /index.php?id=$1 [QSA]
    RewriteRule ^([0-9]+)\/$ /index.php?id=$1 [QSA]
    ErrorDocument 404 /404.html
    bu şekilde denermisin