Non-www to www
3 posts
• Page 1 of 1
Non-www to www
Hi,
This should be easy but it's somehow not working. What am I doing wrong?
I just get a 404 error while the version with "www." is working just fine.
Thanks,
Frank
This should be easy but it's somehow not working. What am I doing wrong?
- Code: Select all
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
I just get a 404 error while the version with "www." is working just fine.
Thanks,
Frank
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Non-www to www
Where do you put it?
Have you tried the testing rule from FAQ. In case it doesn't work, try to enable logging and provide us with some logs.
Regards
Andrew
Have you tried the testing rule from FAQ. In case it doesn't work, try to enable logging and provide us with some logs.
Regards
Andrew
- warriorfullights
- Posts: 19
- Joined: 28 Sep 2012, 01:54
Re: Non-www to www
Do you think it is because of http and https instead of non-www and www?
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 28 guests