Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

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

0 Members and 1 Guest are viewing this topic.

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

  • Administrator
  • Web Hosting Master
  • *****
  • Posts: 601
  • 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:
 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3847 Views
Last post December 14, 2008, 01:10:47 PM
by muckle.martin
0 Replies
3074 Views
Last post August 10, 2008, 04:11:03 PM
by Kevin
3 Replies
4386 Views
Last post March 31, 2009, 11:06:25 AM
by Kailash
0 Replies
4295 Views
Last post September 17, 2009, 11:10:47 AM
by Kailash
3 Replies
1226 Views
Last post January 17, 2013, 09:09:16 AM
by Steve Smith