Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Rule good, but browser returns 404 in IIS Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mr_tom
Newbie
Newbie


Joined: 03 July 2008
Online Status: Offline
Posts: 4
Posted: 17 July 2008 at 10:32am | IP Logged Quote mr_tom

Hi. I have a rule that produces good test output. It takes http://host/about_us, for example, and redirects to http://host/content.cfm/about_us . This all looks good in the testing utility. However, in the browser, a 404 is returned. The site is hosted on Win03 IIS6.

RewriteRule http(s?)://(.*)\.(com|net)/(?:(?!(?:index\.cfm|content\.cfm)))(.*) http$1://$2.$3/content.cfm/$4 [L]

Is IIS's 404 handler interfering? How can I get around that?

Thanks.

Back to Top View mr_tom's Profile Search for other posts by mr_tom
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7372
Posted: 28 July 2008 at 5:05pm | IP Logged Quote Lexey

RewriteCond Host: (.*\.(?:com|net))
RewriteCond %HTTPS (on)|.*
RewriteRule /(?!(?:index\.cfm|content\.cfm))(.*) http(?2s:)\://$1/content.cfm/$3 [I,R]
Back to Top View Lexey's Profile Search for other posts by Lexey
 

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 cannot vote in polls in this forum