rules about second domain
3 posts
• Page 1 of 1
rules about second domain
i'm a newer,now i need the rules with the folows:
http://expo.xxx.com/
http://www.xxx.com/expo/index.aspx
http://news.xxx.com/
http://www.xxx.com/article/index.aspx
who can help me thks
http://expo.xxx.com/
http://www.xxx.com/expo/index.aspx
http://news.xxx.com/
http://www.xxx.com/article/index.aspx
who can help me thks
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: rules about second domain
Hello,
Try using:
Regards
Andrew
Try using:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} !^www\.xxx\.com$ [NC]
RewriteCond %{HTTP:Host} ^(.+)\.xxx\.com$ [NC]
RewriteRule ^$ http://www.xxx.com/%1/index.aspx [NC,P]
Regards
Andrew
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 22 guests