Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to rewrite url:




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
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

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

Your Answer


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