Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Parking Domains And .htaccess Problem


  • Please log in to reply
2 replies to this topic

#1 webvivre

webvivre

    HR 3

  • Active Members
  • PipPipPip
  • 65 posts
  • Location:Eastbourne

Posted 18 November 2011 - 07:59 AM

I have several domains parked on one domain.

Rewrite rule is directing www.otherdomain.com to www.maindomain.com correctly.

But www.otherdomain.com/folder/index.html is not redirecting to www.maindomain.com/folder/index.html but showing as
www.otherdomain.com/folder/index.html still

Here is the section in .htaccess
CODE
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?otherdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [R=301,L]


Any help appreciated.

Thanks

Howard

#2 Michael Martinez

Michael Martinez

    HR 10

  • Active Members
  • PipPipPipPipPipPipPipPipPipPip
  • 5,028 posts
  • Location:Georgia

Posted 18 November 2011 - 02:22 PM

You could probably accomplish what you want with a simple RedirectMatch rule of:

RedirectMatch 301 /* http : // www . otherdomain . tld /



#3 webvivre

webvivre

    HR 3

  • Active Members
  • PipPipPip
  • 65 posts
  • Location:Eastbourne

Posted 18 November 2011 - 02:47 PM

Thanks will try it.

QUOTE(Michael Martinez @ Nov 18 2011, 03:22 PM) View Post
You could probably accomplish what you want with a simple RedirectMatch rule of:

RedirectMatch 301 /* http : // www . otherdomain . tld /






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!