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

How to rewrite url:

www.domain.com
domain.com

to

www.domain.com/sell.html

Were sell.html is already rewritten I need some kind of redirection.

share|improve this question

migrated from stackoverflow.com Jul 10 '11 at 5:56

This question came from our site for professional and enthusiast programmers.

    
This doesn't sound like a programming question. Seems more appropriate for webmasters. –  Flimzy Jul 9 '11 at 6:52
add comment

2 Answers 2

Go to your .htaccess file and put this code there:

RewriteEngine ON
RewriteRule ^/$ http://www.domain.com/sell.html [R=301,L]
share|improve this answer
add comment
RewriteRule ^/$ http://www.domain.com/sell.html [R=301,L]

This will create a 301 (permanently moved) redirect from the root URL (/) to sell.html.

share|improve this answer
add comment

Your Answer

 
discard

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