can i redirect to a sub-domain :rolleyes:

orzyman

Senior Member
Joined
May 22, 2011
Messages
807
Reaction score
198
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
 
can anyone help me out
 
can anyone help me out

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
 
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

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:
Back
Top