Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Upgraded w2003 to w2008 stopped working Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mike123c
Newbie
Newbie


Joined: 18 June 2009
Online Status: Offline
Posts: 11
Posted: 28 July 2010 at 1:41pm | IP Logged Quote mike123c

I'm using the same expression from a w2003 server that works OK and have copied it over to a new w2008 server and now it doesn't work.

Have enabled logging and I get some output there.

The redirect is non-www to www

The expression I'm using is:

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^localhost [NC]
RewriteRule .? https://localhost%{REQUEST_URI} [R=301,L,NC]
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP_HOST} !^localhost [NC]
RewriteCond %{HTTP_HOST} ^(?!(?:www(?:\d+)?|webmail)\.)(.+)$ [NC]
RewriteRule .? http(?%1s)://www.%2%{REQUEST_URI} [R=301,L,NC]

The error.log says httpd.conf loaded successfully

The Rewrite.log has some "matched" and "not-matched" results

An extract is:

[domain.com/sid#16][rid#29158896/initial] (4) RewriteCond: input='off' pattern='(on)?' => matched
[domain.com/sid#16][rid#29158896/initial] (4) RewriteCond: input='domain.com' pattern='^localhost' => matched
[domain.com/sid#16][rid#29158896/initial] (4) RewriteCond: input='domain.com' pattern='^(?!(?:www(?:\d+)?|webmail)\.)(.+)$' => matched
[domain.com/sid#16][rid#29158896/initial] (1) escaping http://www.domain.com/
[domain.com/sid#16][rid#29158896/initial] (2) explicitly forcing redirect with http://domain.com/
[domain.com/sid#16][rid#29158896/initial] (2) internal redirect with / [INTERNAL REDIRECT]

Any advice much appreciated, as I need to get this working soon.

Cheers
Mike

 

Back to Top View mike123c's Profile Search for other posts by mike123c
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 29 July 2010 at 4:23am | IP Logged Quote AndrushkaUS

Hello Mike,

please, provide the real log. If it's inconvenient for you to post it on the forum, please, send it to use via help desk.

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
mike123c
Newbie
Newbie


Joined: 18 June 2009
Online Status: Offline
Posts: 11
Posted: 29 July 2010 at 12:01pm | IP Logged Quote mike123c

Have sent the log to the help desk, ref  [isapirewrite3-7485]

Cheers
Mike

 

Back to Top View mike123c's Profile Search for other posts by mike123c
 

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