: Can you rewrite the root? Not sure how to word this one but will explain most I can. I am trying to make the following happen. Re-write this http://example.com To this http://example.com/home/
Not sure how to word this one but will explain most I can.
I am trying to make the following happen.
Re-write this example.com To this example.com/home/
Is it possible ?
update
Simone Carletti - the method you posted did not work, have you had this work ? Also would it visually change in the browser URL bar to say /home/
John Conde ♦ - this did not work either I was getting a warning from Firefox saying it would never complete so it did not load the page.
More posts by @Michele947
2 Comments
Sorted by latest first Latest Oldest Best
If you want to redirect A to B, simply place the following directive in your .htaccess file:
Redirect / example.com/home/
If you want to rewrite / as /name
RewriteEngine On
RewriteRule ^/$ /home/ [L]
I'm not an expert at this so this may be wrong. If so, let me know so I can either correct it or delete it.
RewriteEngine on
RewriteRule ^$ /home/[L,R=301]
edit
This stackoverflow questions seems to ask the same question. Check it out and see if you find a solution there. If so, let us know so we can post it here for future reference.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.