1

I saw this: How to redirect root and only root via htaccess? and it's close, but not quite.

I am in the middle of rewriting a site, and would like to be able to send users from:

http://myfullurl.com 

to:

http://mylandingpageurl.com 

While retaining the ability to test the site at:

http://myfullurl.hostingprovider.com 

1 Answer 1

2

Use mod_rewrite like this:

RewriteEngine On RewriteCond %{HTTP_HOST} ^myfullurl\.com$ [NC] RewriteRule ^(.*)$ http://mylandingpageurl.com/$1 [R=301,L] 
1
  • Worked like a charm, does exactly what it needed to do. Thanks! Commented Dec 15, 2009 at 13:00

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.