为了账号安全,请及时绑定邮箱和手机立即绑定

http://localhost/my/INDEX.PHP/INDEX/INDEX无法正常运行:解决时找不到Options FollowSymLinks谢谢

https://img1.sycdn.imooc.com//5b9dcfc50001e1c706580509.jpg

打不到:

Options FollowSymLinks

https://img1.sycdn.imooc.com//5b9dd0590001632b07010331.jpg

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModeule>


Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500

localhost

Apache/2.4.18 (Win32) PHP/5.6.16


正在回答

4 回答

谢谢,同样的问题

0 回复 有任何疑惑可以回复我~

通过了,不知道是否是这样

0 回复 有任何疑惑可以回复我~

再将RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]修改为:

RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]


1 回复 有任何疑惑可以回复我~

终于解决了:phpstudy或者xampp都可以,版本差不多;

1、在Apache安装文件夹conf里找到httpd.conf文件搜索并开启LoadModule rewrite_module modules/mod_rewrite.so。搜索AllowOverride None 修改为AllowOverride All

2、

<IfModule mod_rewrite.c>

     Options +FollowSymlinks -Multiviews

     RewriteEngine On

     RewriteCond %{REQUEST_FILENAME} !-d

     RewriteCond %{REQUEST_FILENAME} !-f

     RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>

    

最好重启一下!


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

http://localhost/my/INDEX.PHP/INDEX/INDEX无法正常运行:解决时找不到Options FollowSymLinks谢谢

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信