Non-www to www

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 6
Joined: 12 Sep 2012, 12:40

Non-www to www

24 Sep 2012, 11:46

Hi,

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

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Non-www to www

24 Sep 2012, 16:56

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

Posts: 19
Joined: 28 Sep 2012, 01:54

Re: Non-www to www

28 Sep 2012, 04:05

Do you think it is because of http and https instead of non-www and www? Image

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 23 guests