Home   Help Login Register  
Welcome, Guest. Please login or register.

Login with username, password and session length

Search
Free Website WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: Redirect to www using ISAPI rewrite rule  (Read 2594 times)
« on: August 22, 2008, 12:24:18 PM »
Rakesh Offline
Newbie

View Profile
*

iTrader: 0
Posts: 7



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

Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NetvouzShare this topic on NewsvineShare this topic on OneviewShare this topic on RedditShare this topic on RojoShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on TipdShare this topic on YahooShare this topic on Google buzz
Logged
« Reply #1 on: August 22, 2008, 10:15:56 PM »
Kailash Offline
Administrator
Newbie

View Profile WWW
*****

iTrader: 50
Posts: 286



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:
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
Logged

Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2012 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines | Forum style designed by PixelSlot
Google - Sitemap - XML Sitemap