![]() |
Having issues redirecting subdirectory to domain
My hosting plan is hosting two domains.
1) Main domain - abc.com 2) Blog domain - xyz.com The 2nd domain is contained within a subdirectory of the main domain, so abc.com/blog/ is also xyz.com I have been trying to edit my .htaccess file to redirect abc.com/blog to xyz.com, but every time I get it work, the stylesheet gets stripped from the xyz.com. Can someone please point me in the right direction? The .htaccess file resides in the root directory. Do I need a separate one in the 'blog' directory? |
Try:
Code:
RewriteRule ^blog(.*) http://xyz.com$1 [R=301,L] |
Thank you, that worked!
|
| All times are GMT +1. The time now is 08:45 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.