Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How to rewrite url:


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

share|improve this question

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

2 Answers 2

RewriteRule ^/$ [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 ^/$ [R=301,L]
share|improve this answer

Your Answer


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