簡體   English   中英

mod_rewrite無法正常工作-持續出現500內部服務器錯誤

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM