htaccess

Bartman

Power Member
Joined
Apr 24, 2010
Messages
569
Reaction score
131
hi guys
does anyone know what this code does?

Code:
#Prevent subfolder loading. This goes
# in htaccess for the primary domain
RewriteCond %{HTTP_HOST} ^primary\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.primary\.com$
RewriteRule ^addon\.com\/?(.*)$ "http\:\/\/www\.addon\.com\/$1" [R=301,L]
 
#Prevent subfolder loading. This goes
# in htaccess for the primary domain


The description is in the code. This 301 redirects your traffic to your addon domain instead of displaying it as a subfolder of your primary domain.
 
The description is in the code. This 301 redirects your traffic to your addon domain instead of displaying it as a subfolder of your primary domain.

you mean mymaindomain.com is redirected to my addondomain.com?
 
Back
Top