Domain Rewrite for WordPress

Using a single web hosting account to host multiple sites

Domain Rewrite for WordPress

Postby CrazyLazy » Sun Mar 25, 2007 7:26 pm

I'd install WordPress in hosting A (domainA.com), and, I have a domain in hosting B (domainB.com - not installed WordPress, just parked domain).

When access http://www.domainB.com/2007/03/24/2nd-post-1st-blog.html

user (not domain-redirected) show :
http://www.domainA.com/2007/03/24/2nd-post-1st-blog.html pages. (domainA.com installed WordPress).

For simple :
http://www.domainB.com/page.html => page.html domainA.com

Thanks for help.
CrazyLazy
 
Posts: 1
Joined: Sat Mar 24, 2007 9:33 pm

Postby richardk » Mon Mar 26, 2007 9:36 am

So the domains go to different web hosting and you want them to go to the same place? Then you would need the following in a .htaccess file in domainB.com's document root (you will also need mod_proxy)
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^(.*)$ http://www.domainA.com/$1 [P,L]


Why not change domainB.com's DNS so it goes to the right place? It would be a lot more efficient.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 24 guests

cron