Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Simple none www. traffic to www traffic Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Steeeeeeeeeee
Newbie
Newbie


Joined: 22 September 2008
Location: United Kingdom
Online Status: Offline
Posts: 1
Posted: 22 September 2008 at 10:09am | IP Logged Quote Steeeeeeeeeee

 

Hi,

I need to redirect all none www traffic to exactly the same url but with the www.

I have looked through you documentation and there is an example that works for all domains, but not a specific domain, which is what I need.

Please can you help me by providing a rule that would solve this?

Regards,

Stephen.

Back to Top View Steeeeeeeeeee's Profile Search for other posts by Steeeeeeeeeee
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4842
Posted: 23 September 2008 at 2:20am | IP Logged Quote Anton

The rules should be:

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

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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