• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to write a redirect?

jauburn

Well-known member
#1
What's the best way to write a redirect (htaccess or cpanel) to send *all* pages of a domain to a *single page* (of instructions, ending in php) of another domain?

Thanks!
 

Rob

Well-known member
#2
This should work for you:- (.htaccess)
Code:
RedirectMatch 301 ^/$ http://www.yoursite.com/yourpage.php