Üzgünüm daha iyi bir başlık ile gelemedi.
İşte benim htaccess olduğunu
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L,QSA]
Ve bu benim sorunum:
localhost/validpage gives me the contents of localhost/validpage.php. localhost/validpage/blah also gives me the same (validpage.php) page and so does localhost/validpage/blah/blah/... Therefore the problem I am facing is link duplicity(in my words!).
Nasıl localhost/validpage.php localhost/validpage erişilen izin yok, sadece ve başka bir şey değil, hatta localhost/validpage.php.
I have started a question on ServerFault too but with not much success. The answer I have got is it cannot be done with htaccess alone.
Validpage I sunucu üzerinde herhangi bir valid sayfa demek. Ben temiz URL'ler için mod_rewrite ile mevcut bir siteyi güçlendirme olduğum için, ben sadece. Htaccess ile tercihen nispeten kolay bir çözüm arıyorum. Ancak, herhangi bir çözüm bekliyoruz.