This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: non www to www
Author
Message |
Willids
Newbie


Joined: 21 May 2009
Location: United Kingdom
Posts: 15
Posted: 17 September 2011 at 6:50am

I have a domain name pointing to the website and when I enter www.DomainName.co.uk it goes to the website, but when I put DomainName.co.uk I get a login box as if it need authenticating.

I have tried

RewriteEngine on

RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC,NS]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L,NS]

but getting no joy.

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 19 September 2011 at 5:50am

But do you need http or httpS redirect?

Try using simple:

Code:
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [NC,R=301,L]


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version