1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

moving site to subdomain, need htaccess advice! =)

Discussion in 'Site & Server Administration' started by kanter, Mar 17, 2009.

  1. #1
    Hey guys,

    I have a website such as this:

    http://www.blue.com
    SEMrush
    I'm going to integrate it with another website such as this:

    http://colors.com [doesn't use www]

    I'd like it to be hosted like this:

    http://blue.colors.com

    There are thousands of posts at http://www.blue.com and many of them are doing well in Google. The lucky part is that I think we can use htaccess to foward the entire site with some simple commands, cuz the structure will stay the same (we shouldn't need to setup tons of specific rules in htaccess). Please offer any tips for proper 301 htaccess forwarding.

    We don't really care much about other random pages cuz they don't get much traffic, but they should be able to forward using the same general htaccess rules as the above examples... we just need some advice for specific htaccess code!

    http://www.blue.com/about/
    http://www.blue.com/resources/

    More info:

    Example page like http://www.blue.com/region/russia/ ... needs to forward to this location: http://blue.colors.com/region/russia/

    Another example page like http://www.blue.com/russia/good-stuff/ ... needs to foward to this location: http://blue.colors.com/russia/good-stuff/

    And yes, our site is based on Wordpress.

    region = category base
    russia = example category
    good-stuff = example post

    THANKS!
     
    kanter, Mar 17, 2009 IP
    SEMrush
  2. Dimma

    Dimma Well-Known Member

    Messages:
    631
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Dimma, Mar 17, 2009 IP
    kanter likes this.
  3. kanter

    kanter Banned

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cool thanks Dimma! We will try that and check back. What do you mean "be sure all your files work"?

    + Rep added.
     
    kanter, Mar 17, 2009 IP
  4. Dimma

    Dimma Well-Known Member

    Messages:
    631
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Dimma, Mar 17, 2009 IP
  5. kanter

    kanter Banned

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks worked perfect!
     
    kanter, Mar 18, 2009 IP