![](/img/trans.png)
[英]500 Internal Server Error CodeIgniter htaccess mod_rewrite
[英]mod_rewrite not working - keep getting 500 Internal Server Error
环境:Apache 2.0.63 PHP5.3.x。
我的网站是www。 * **** .com / LandlordApp / index.php
我希望能够将所有流量重定向到索引文件?
我尝试了以下操作,但是不断收到“ 500 Internal Server Error”:
<Directory /LandlordApp>
RewriteEngine On
RewriteBase /LandlordApp/
RewriteRule ^index.php$
</Directory>
欢迎所有帮助。
谢谢
我将其放在您的LandlodApp目录中
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.