RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ http://127.0.0.1/$1 [R,L]
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ detay.php/$1 [L,QSA]
bunu dener misin
RewriteEngine on
RewriteCond %{HTTP_HOST} ^localhost/ [NC]
RewriteRule ^(.*)$ http://localhost/$1 [L,R=301,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^([^/_.]+)$ detay.php?url=$1 [L,QSA] (#BU SATIR #BU SATIR)
RewriteRule ^sayfa/([^/_.]+)$ index.php?page=$1 [L,QSA]
bu satırları silip
Merhabalar.
bana kısaca şu işlemi aptırta bilir mininiz?
detay sayfasındaki url sonuna / ve / tan sonra bir yazı yazdığımda 301 e atmaıs olması gerekiyor. nasıl yapabilirim?