1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can i redirect to a sub-domain :rolleyes:

Discussion in 'Blogging' started by orzyman, Dec 17, 2011.

  1. orzyman

    orzyman Senior Member

    Joined:
    May 22, 2011
    Messages:
    808
    Likes Received:
    197
    Occupation:
    http://i.imgur.com/0aNSa.gif
    Location:
    in your mind
    hi ok so i have an adsense site with about 30 content on it and my problem is i decided to make the site an amazon site and then create a sub-domain and put the 30 articles on them as its blog
     
  2. orzyman

    orzyman Senior Member

    Joined:
    May 22, 2011
    Messages:
    808
    Likes Received:
    197
    Occupation:
    http://i.imgur.com/0aNSa.gif
    Location:
    in your mind
    thread bump
     
  3. orzyman

    orzyman Senior Member

    Joined:
    May 22, 2011
    Messages:
    808
    Likes Received:
    197
    Occupation:
    http://i.imgur.com/0aNSa.gif
    Location:
    in your mind
    can anyone help me out
     
  4. Enigma32

    Enigma32 Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 28, 2010
    Messages:
    210
    Likes Received:
    108
    What exactly are you asking?

    You have domain.com setup as one site, and you want to redirect blog.domain.com to a location outside of your own hosting setup?

    Drop a .htaccess file in the subdomains directory with:

    Code:
    RewriteCond %{HTTP_HOST} ^blog.domain.com$
    RewriteRule ^/?$ "http://www.thenewsite.com" [R=301,L]
    RewriteEngine on
     
  5. orzyman

    orzyman Senior Member

    Joined:
    May 22, 2011
    Messages:
    808
    Likes Received:
    197
    Occupation:
    http://i.imgur.com/0aNSa.gif
    Location:
    in your mind
    ok so i have a www. mysite.com with 30 articles on them but i want to use the www .mysite.com as an amazon site store and then create a sub-domain and put the 30 articles on them but i don't want the idea of creating a sub-domain and adding all the articles manually as it will be very hard to to so i thought maybe there is a way out
     
    Last edited: Dec 17, 2011