redirectct from one domain to another

New to mod_rewrite? This is a good place to start.

redirectct from one domain to another

Postby loquela » Tue Oct 13, 2009 4:58 am

Hi there,

I want to redirect any visitors from www.mydomain.com, www.mydomain.com/whateversubpageorsubdirectory to www.myotherdomnain.com/thispage.html

What would the RewriteRule be?

Thanks
loquela
 
Posts: 1
Joined: Tue Oct 13, 2009 4:54 am

Postby richardk » Tue Oct 13, 2009 2:37 pm

Try
Code: Select all
RedirectMatch 301 ^/.*$ http://www.example.com/thispage.html?

in mydomain.com/.htaccess.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 15 guests

cron