Environment: Apache 2.0.63 PHP 5.3.x.
My website is www. * **** .com/LandlordApp/index.php
I want to be able to redirect all traffic to index file?
I have tried the following, but constantly getting "500 Internal Server Error":
<Directory /LandlordApp>
RewriteEngine On
RewriteBase /LandlordApp/
RewriteRule ^index.php$
</Directory>
All help is very welcome.
Thank you
I would put this in your LandlodApp directory
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.