20i Reseller Hosting

wordpress htaccess help

Discussion in 'Scripts and Coding' started by SecNam, Aug 27, 2012.

Thread Status:
Not open for further replies.
  1. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,223
    Likes Received:
    47
    Hi

    Can anyone help on this issue i have.

    I have a wordpress install on say

    www.domain1.co.uk

    i have made a post called games so it looks like ww.domain1.co.uk/games

    now i have parked the domain games.co.uk on domain1.co.uk and got it so when you goto games.co.uk it goes to www.domain1.co.uk/games/ so all ok there.

    but

    i am looking for a way to keep the url games.co.uk in the address bar and not the redirect url www.domain1.co.uk.games/

    anyone have any ideas?

    thanks in advance
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    articles.co.uk
     
  3. Aegean Greece

    Aegean Active Member

    Joined:
    Feb 2011
    Posts:
    751
    Likes Received:
    16
    If I am understanding you correctly, why not put the content of www.domain1.co.uk/games onto the games.co.uk domain? Then you could do the 301 the other way round.

    Don't use cloaking though, you'll get a kick from Google for that.
     
  4. boxfish United Kingdom

    boxfish Well-Known Member

    Joined:
    Jul 2010
    Posts:
    1,010
    Likes Received:
    63
    Would it not be easier to use frames rather than a redirect?
     
  5. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,223
    Likes Received:
    47
    come to think of it more i think your right.
     
  6. SecNam

    SecNam Moderator Staff Member

    Joined:
    Jul 2004
    Posts:
    5,223
    Likes Received:
    47
    I am hoping a htaccess guru can help me.

    I am using the following in my htaccess:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www\.)?funkys.uk [NC]
    RewriteCond %{HTTP_HOST} !^$
    RewriteRule ^(.*) http://www.securenames.co.uk/funkys-uk/$1 [L,R=301]

    RewriteCond %{HTTP_HOST} ^(www\.)?funkys.co.uk [NC]
    RewriteCond %{HTTP_HOST} !^$
    RewriteRule ^(.*) http://www.securenames.co.uk/funkys-co-uk/$1 [L,R=301]


    Is there a way to wildcard this in htaccess so any domain name i park goes to securenames.co.uk/domainname-co-uk

    This way i wont need to put hundreds of lines in my htaccess.

    thanks in advance.
     
Thread Status:
Not open for further replies.