I have the following DocumentRoot
structure on my webserver:
folder1
folder2
I can access all of them in standard way
my.ip.address.here/folder1
my.ip.address.here/folder2
I want to redirect the request to website that doesn't have particular folder specified to one default folder, namely 'folder1'. For example, if I type in a browser my.ip.address.here
, it redirects me to 'my.ip.address.here/folder1'.
I have the .htaccess file located inside my DocumentRoot
folder with the following contents:
RewriteEngine On
RewriteRule ^$ /folder1 [R=301, L]
When I run the website in a browser I get the following eror:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
What could be wrong with configuration? Thanks in advance!