Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 URL 中删除 .php 扩展名,以便像http://mysite.com/abc.php这样的 URL将重定向到http://mysite.com/abc如何在 apache 中使用 .htaccess
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php
你可以很容易地谷歌它......