+ Reply to Thread
Results 1 to 10 of 10

 

Thread: Addon domain redirection

  1. #1
    kickflip's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2008
    Location
    Stafford
    Posts
    255
    Thanks
    26
    Thanked 21 Times in 20 Posts


    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.

  2. #2
    Registered User

    Status
    Offline
    Join Date
    May 2008
    Posts
    797
    Thanks
    16
    Thanked 19 Times in 16 Posts
    try

    RewriteEngine On
    RewriteBase /

    ## SEO REWRITES ###
    RewriteRule ^addondomain.co.uk$ http://www.addondomain.co.uk
    High Quality Bed Frames From BedFrames.co.uk
    bed frames

  3. #3
    kickflip's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2008
    Location
    Stafford
    Posts
    255
    Thanks
    26
    Thanked 21 Times in 20 Posts
    No that one don't do it :cry

  4. #4
    Registered User

    Status
    Offline
    Join Date
    May 2008
    Posts
    797
    Thanks
    16
    Thanked 19 Times in 16 Posts
    hmm strange should do thats what ive got for mine ...

    ok change
    Code:
    RewriteBase http://www.maindomain.co.uk/
    High Quality Bed Frames From BedFrames.co.uk
    bed frames

  5. #5
    kickflip's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2008
    Location
    Stafford
    Posts
    255
    Thanks
    26
    Thanked 21 Times in 20 Posts
    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!

  6. #6
    Registered User

    Status
    Offline
    Join Date
    May 2008
    Posts
    797
    Thanks
    16
    Thanked 19 Times in 16 Posts
    strange lol
    High Quality Bed Frames From BedFrames.co.uk
    bed frames

  7. #7
    kickflip's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2008
    Location
    Stafford
    Posts
    255
    Thanks
    26
    Thanked 21 Times in 20 Posts
    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?

  8. #8
    Registered User

    Status
    Offline
    Join Date
    May 2008
    Posts
    797
    Thanks
    16
    Thanked 19 Times in 16 Posts
    nope just sounds like your apache process being an arse lol
    High Quality Bed Frames From BedFrames.co.uk
    bed frames

  9. #9
    ash
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Posts
    435
    Thanks
    36
    Thanked 51 Times in 38 Posts
    Is this little tutorial i wrote a while ago any help?

    Rankwell SEO Htaccess for addon domains

  10. #10
    kickflip's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2008
    Location
    Stafford
    Posts
    255
    Thanks
    26
    Thanked 21 Times in 20 Posts
    Cheers all, still working fingers crossed

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

    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]

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. All sites for sale. going cheap need to go asap.
    By KPR in forum Domains & Websites For Sale
    Replies: 0
    Last Post: 16-07-08, 04:38 PM
  2. domain redirection
    By bottler in forum Affiliate Marketing Lounge
    Replies: 1
    Last Post: 03-09-04, 12:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2