- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I need to move one wordpress site to another domain.
Both domains will be pointed to the same nameserver, ie. they are both working on the same folder and have the same root.
I need a .htaccess file that moves http://olddomain.com/testcategory/ to http://newdomain.com/testcategory/ for example.
So the only thing that is different is the domain. If somebody clicked a page from an old link on another site to the old link they will be redirected to the new domain but the URL will still be intact.
Does this make any sence?
Any help would be much appreciated.
Jeff Starr has a pretty comprehensive .htaccess guide:
http://perishablepress.com/press/2006/0 … ss-tricks/
There is definitely information in there on that.
Thanks apostrophe and chris.
I ended up using
after pointing the original domain to a new fonder wit the .htaccess mentioned above.
I found a more comprehensive code.
RewriteCond %{HTTP_HOST} ^domain2.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain1.com$
RewriteRule ^(.*)$ “http://www.domain2.com/$1” [R=301,L]