Non www to www
2 posts
• Page 1 of 1
Non www to www
How can I redirect
http://domain.com/;
http://www.domain.com/index.html;
http://domain.com/index.html –
TO http://www.domain.com/ using ISAPI Rewrite?
I have tried examples but didn't work.
http://domain.com/;
http://www.domain.com/index.html;
http://domain.com/index.html –
TO http://www.domain.com/ using ISAPI Rewrite?
I have tried examples but didn't work.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Non www to www
Hello,
The answer would be as in the examples or FAQ section:
Regards
Andrew
The answer would be as in the examples or FAQ section:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^domain\.com$ [NC]
RewriteRule ^$ http://www.domain.com/ [NC,R=301,L]
RewriteRule ^index\.html\;?$ http://www.domain.com/ [NC,R=301,L]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests