2

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.

  • This doesn't sound like a programming question. Seems more appropriate for webmasters. – Flimzy Jul 9 '11 at 6:52
1
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.

1

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

RewriteEngine ON
RewriteRule ^/$ http://www.domain.com/sell.html [R=301,L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy