Last night I was looking for a way to redirect a domain (example.com) to example.com/folder but without actually redirecting the user to that folder.
So I thought that the best way to go about is actually treading every request as example.com/folder.
Anyway enough said here is the result.
|
|
Place the above in a .htaccess
file in the root of your webserver.
Pretty need isn’t it? It only took 4 lines. 😄