いくつかの変更により、http:http://www.abc.com/asd/
//www.abc.com/asd/zxc/ のような Web ファイルの拡張子をzxc.phpに対して非表示にすることができますが、私がやりたいことは、URL からファイル名を完全に削除することです。ユーザーが Web サイトのどこにアクセスするかは問題ではありませんが、URL は常に静的なままにしておく必要があります。
でそれを行うことは可能.htaccess
ですか?
私はすでにこれを試しましたが、うまくいきませんでした:
RewriteOptions inherit
RewriteEngine On # enables url rewriting
RewriteCond %{REQUEST_FILENAME} !-d # if requested uri is not directory (!-d)
RewriteCond %{REQUEST_FILENAME}\.php -f # and if there is a file named URI+'.php' (-f)
RewriteRule ^(.*)$ $1.php # then if there is any thing in uri then rewrite it as uri+'.php'