Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-25-2012, 10:03 AM   PM User | #1
leemarquis
New Coder

 
Join Date: Jun 2008
Posts: 68
Thanks: 8
Thanked 0 Times in 0 Posts
leemarquis is an unknown quantity at this point
Redirect domain name but keep folder path

I have a series of domains all parked with my host and my htaccess file has a series of RewriteCond to change the parked domain names to the main domain.

eg:
Code:
RewriteCond %{HTTP_HOST} ^abc\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.abc\.com$
RewriteRule ^/?$ "http\:\/\/www\.xyz\.com\/" [R=301,L]
This works but if you add '/folder' after abc.com the domain name is not changed. How can I get abc.com/folder to change to xyz.com/folder - ie so that the domain name is changed from the parked domain name to the main domain name but anything after the .com is kept in tact?
__________________
WOW Paradise - Exclusive - Insiders Report!
Download Free Insiders Report!!! www.wowparadise.eu
leemarquis is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:43 PM.


Advertisement
Log in to turn off these ads.