DavidHannen
asked on
How do I redirect to a wordpress page
I have two domains. One is Linux and one Windows. I am developing sites in both and have different domain names for each. Windows has a standard HTML website on it, the Linux server has Wordpress on it.
Whichever one is not the 'public' and 'live' domain I want to forward to the other domain
At the moment i need to forward all traffic from the windows HTML site to the Wordpress site - but the code I have used in the past for this will not work . (See code below)
I need to forward from a Window server HTML website to a Wordpress websitesite page. How do I make this happen?
Thanks for the help.
Whichever one is not the 'public' and 'live' domain I want to forward to the other domain
At the moment i need to forward all traffic from the windows HTML site to the Wordpress site - but the code I have used in the past for this will not work . (See code below)
I need to forward from a Window server HTML website to a Wordpress websitesite page. How do I make this happen?
Thanks for the help.
<head>
<META http-equiv="refresh" content="5; URL=http://www.xxxxxxxx.xxx.uk/index.htm">
<title>HoldingPage</title>
<style type="text/css">
.style1
{
width: 410px;
}
</style>
</head>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Should that be index.php?
Also missing quote:
content="5
content="5
nevermind that quote nonsense
Hi,
Try the below code..its helpful for you..
Try the below code..its helpful for you..
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
?>
using htaccess redirect your website...
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
Refer the below urls. Its helpful for you...
http://www.isitebuild.com/301-redirect.htm
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
http://www.isitebuild.com/301-redirect.htm
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
ASKER
Thanks - it worked fine without the '/page name.php'