Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Not sure how to word this one but will explain most I can.

I am trying to make the following happen.

  1. Re-write this http://domain.name

  2. To this http://domain.name/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.

share|improve this question
    
@danlefree He tagged the question as htaccess, thus we can assume he's using Apache. –  Simone Carletti Oct 7 '11 at 0:08

2 Answers 2

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.

share|improve this answer
    
This did not seem to work, but thanks. –  Mr Obvious Oct 6 '11 at 16:00

If you want to redirect A to B, simply place the following directive in your .htaccess file:

Redirect / http://domain.name/home/

If you want to rewrite / as /name

RewriteEngine On
RewriteRule ^/$ /home/ [L]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.