Divi WordPress Theme

Topic: Redirect to www using ISAPI rewrite rule  (Read 7417 times)

Offline Rakesh

  • Newbie
  • *
  • Posts: 7
  • iTrader: +0/-0
    • View Profile
Redirect to www using ISAPI rewrite rule
« on: August 23, 2008, 12:54:18 AM »
Hi,

I am not sure if this is the right forum to ask this question. I have site hosted on Windows server running on IIS 6 and I want set redirection to www so that if someone browse domain.com it redirects to www.domain.com.

My Host had told me that they have lite version of ISAPI rewrite installed and I want to provide the rule that should not affect to other domains hosted on the same server. Can someone provide me the guideline to setup this rule?

Thanks in advance.

Rakesh
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 610
  • iTrader: +153/-0
    • View Profile
Re: Redirect to www using ISAPI rewrite rule
« Reply #1 on: August 23, 2008, 10:45:56 AM »
You will need to provide the below code to your hosting provider to set the rule. This rule needs to be write in httpd.ini file:

Code: [Select]
RewriteCond Host: ^domain\.com
RewriteRule (.*) http\://www\.domain\.com$1 [I,RP]
Replace domain with your actual domain name without TLD and .com with your TLD.

Kailash
Divi WordPress Theme
Tags: