I am managing a fundamental test to make certain the server supports .htaccess. Regrettably, we are getting a little of the problem:
This is actually the structure from the website:
What I wish to do is display (/test/index.html) once the user hits the main directory.
I am while using following .htaccess script:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^$ test/$1 [L] RewriteRule (.*) test/$1 [L] </IfModule>
Consequently, I am getting Internal Server Error. Shall We Be Held doing a problem?
You are receiving 500 error because $1 is undefined in first situation. Change it out to:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^$ test/$1 [L] RewriteRule ^(.*) test/$1 [L] </IfModule>