Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 17-11-08
Registered User
 
Join Date: Oct 2008
Location: Stafford
Posts: 46
Thanks: 4
Thanked 4 Times in 4 Posts
kiddaclo is an unknown quantity at this point
  Question Addon domain redirection

Hi, can anyone help me with this one:

I have a addon domain and have a htaccess file to control any duplicate content issues but the one I can' work out is within the main domain how do I rewrite/redirect www.maindomain.co.uk/addondomain.co.uk to www.addondomain.co.uk ?

I have tried (which I thought was right)
RewriteEngine OnRedirect /addondomain.co.uk http://www.addondomain.co.uk

The addon domain names folder is addondomain.co.uk

Any help would be really appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 17-11-08
Registered User
 
Join Date: May 2008
Posts: 797
Thanks: 16
Thanked 19 Times in 16 Posts
affiliatemarketingltd is an unknown quantity at this point
  Re: Addon domain redirection

try

RewriteEngine On
RewriteBase /

## SEO REWRITES ###
RewriteRule ^addondomain.co.uk$ http://www.addondomain.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 17-11-08
Registered User
 
Join Date: Oct 2008
Location: Stafford
Posts: 46
Thanks: 4
Thanked 4 Times in 4 Posts
kiddaclo is an unknown quantity at this point
  Re: Addon domain redirection

No that one don't do it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 17-11-08
Registered User
 
Join Date: May 2008
Posts: 797
Thanks: 16
Thanked 19 Times in 16 Posts
affiliatemarketingltd is an unknown quantity at this point
  Re: Addon domain redirection

hmm strange should do thats what ive got for mine ...

ok change
Code:
RewriteBase http://www.maindomain.co.uk/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 17-11-08
Registered User
 
Join Date: Oct 2008
Location: Stafford
Posts: 46
Thanks: 4
Thanked 4 Times in 4 Posts
kiddaclo is an unknown quantity at this point
  Re: Addon domain redirection

Ok just done this and all seems to be working:

Redirect /addondomain.co.uk http://www.addondomain.co.uk

not sure why it wasn't working to start with! just took the 'RewriteEngine On' out as it was already on!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 17-11-08
Registered User
 
Join Date: May 2008
Posts: 797
Thanks: 16
Thanked 19 Times in 16 Posts
affiliatemarketingltd is an unknown quantity at this point
  Re: Addon domain redirection

strange lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 17-11-08
Registered User
 
Join Date: Oct 2008
Location: Stafford
Posts: 46
Thanks: 4
Thanked 4 Times in 4 Posts
kiddaclo is an unknown quantity at this point
  Re: Addon domain redirection

Even stranger doesn't work now!! I'm really confused can't access my main site or addon domain!

Update I deleted the htaccess in the main domain and the sites both worked, I then re uploaded the same htaccess and it all works!!! Computers are strange things!

Is there something wrong with doing it this way 'Redirect /addondomain.co.uk http://www.addondomain.co.uk' causing the server to throw a wobbley now and then?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #8 (permalink)  
Old 17-11-08
Registered User
 
Join Date: May 2008
Posts: 797
Thanks: 16
Thanked 19 Times in 16 Posts
affiliatemarketingltd is an unknown quantity at this point
  Re: Addon domain redirection

nope just sounds like your apache process being an arse lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 17-11-08
ash ash is offline
Registered User
 
Join Date: Mar 2006
Posts: 387
Thanks: 29
Thanked 41 Times in 31 Posts
ash is an unknown quantity at this point
  Re: Addon domain redirection

Is this little tutorial i wrote a while ago any help?

Rankwell SEO Htaccess for addon domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 18-11-08
Registered User
 
Join Date: Oct 2008
Location: Stafford
Posts: 46
Thanks: 4
Thanked 4 Times in 4 Posts
kiddaclo is an unknown quantity at this point
  Re: Addon domain redirection

Cheers all, still working fingers crossed

Ash, funnily enough that's the one I used! thanks

The only thing I had to change for some reason is I had to loose the slashes that were escaping the dots in the address then it all worked.

These ones:
Options +FollowSymlinks
RewriteEngine OnRewriteCond %{HTTP_HOST} ^addondomain\.co.uk [NC]
RewriteRule ^(.*) http://www.addondomain.co.uk/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www.addondomain.the-hosting-domain\.co.uk
RewriteRule ^(.*)$ http://www.addondomain.co.uk/$1 [R=permanent,L]

RewriteCond %{HTTP_HOST} ^addondomain.the-hosting-domain\.co.uk
RewriteRule ^(.*)$ http://www.addondomain.co.uk/$1 [R=permanent,L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
All sites for sale. going cheap need to go asap. KPR Domains & Websites For Sale 0 16-07-08 03:38 PM
domain redirection bottler The Affiliate Marketing Lounge 1 03-09-04 11:47 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7