0
当我使用下面的.htaccess代码到国际棋联我的网页的PHP扩展禁止:访问URL重写
RewriteEngine On
RewriteOptions inherit
Options +FollowSymlinks
Options -Multiviews
## hide .php extension
## To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ %{REQUEST_FILENAME}\.php [NC,L]
我可以去localhost:80/site/page.php
,但是当我尝试去localhost:8/site/page
,给XAMPP我是“访问被禁止”的错误。这里发生了什么,我做错了什么?