This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: non www to www Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Willids
Newbie
Newbie


Joined: 21 May 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Posted: 17 September 2011 at 6:50am | IP Logged Quote Willids

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 View Willids's Profile Search for other posts by Willids
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 19 September 2011 at 5:50am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum