Divi WordPress Theme

Redirect to www using ISAPI rewrite rule

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

Offline Rakesh

  • Newbie
  • *
  • Posts: 6
  • 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: 665
  • 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
Shopify Divi WordPress Theme
Tags:

redirect to secure URL (https)

Started by AnonymousBoard .NET Development

Replies: 2
Views: 6000
Last post November 27, 2017, 06:26:53 PM
by neckozenica
Redirect the sub-domain on the Linux server (cPanel/WHM)

Started by KailashBoard How Tos

Replies: 0
Views: 10555
Last post July 04, 2007, 11:01:49 AM
by Kailash
Redirect Web Visitors By Country Using ASP & COM Technol

Started by TechBoard ASP

Replies: 0
Views: 5842
Last post September 30, 2007, 02:45:25 PM
by Tech
301 Redirect using PHP - Permanent Redirect HTTP 301

Started by KevinBoard PHP

Replies: 1
Views: 6800
Last post December 14, 2008, 01:10:47 PM
by muckle.martin
302 Redirect using PHP - temporary redirections

Started by KevinBoard PHP

Replies: 3
Views: 26535
Last post August 11, 2014, 07:10:19 PM
by Web_news