Reputation: 1012
I can't seem to get to the demo directory index.html
I have this url:
http://127.0.0.1/test/facilities/demo/account
I want it to show this pages index.html:
http://127.0.0.1/test/facilities/demo
But it shows this directory:
http://127.0.0.1/test/
here is my .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [L]
the .htacces file is located in:
http://127.0.0.1/test/
Thanks!
Upvotes: 1
Views: 432
Reputation: 786329
You may be able to use this rule in test/.htaccess
:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*/)?[^/]+/?$ $1index.html [L]
Upvotes: 2