RewriteRule Help

Topics: User Forum
Aug 27, 2010 at 2:12 AM

Can someone please help me get my rewriterules working?

The following is what I have in my iirf.ini file:

RewriteLogLevel 3
RewriteLog c:\temp\iirfLog1.out
StatusUrl /iirfStatus

RewriteRule ^home/([0-9]+)/$ home.php?p=$1

What I am after is the rewrite of:

http://www.mysite.com/_website/home/1

to be

http://www.mysite.com/_website/home.php?p=1

Aug 27, 2010 at 2:16 AM
Edited Aug 27, 2010 at 2:18 AM

 

Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: actual log file 'c:\temp\iirfLog1.out.7920.log'
Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: ini file: 'D:\Inetpub\_website\Iirf.ini'
Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: ini file timestamp: 2010/08/27 12:13:24 (local time)
Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: line   3: StatusUrl /iirfStatus
Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: line   3: StatusUrl is enabled for local requests only.
Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: line   5: RewriteRule (rule 1)  '^home/([0-9]+)/$'  'home.php?p=$1'   (null)
Fri Aug 27 12:14:03 -  4032 - ReadSiteConfig: Done reading, found 1 rules (0 errors, 0 warnings) on 6 lines
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Aug 27 12:14:03 -  4032 - DoRewrites
Fri Aug 27 12:14:03 -  4032 - DoRewrites: Url (no decoding): '/_website'
Fri Aug 27 12:14:03 -  4032 - EvaluateRules: depth=0
Fri Aug 27 12:14:03 -  4032 - EvaluateRules: Rule 1 : -1 (No match)
Fri Aug 27 12:14:03 -  4032 - EvaluateRules: returning 0
Fri Aug 27 12:14:03 -  4032 - DoRewrites: No Rewrite
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Aug 27 12:14:03 -  4032 - DoRewrites
Fri Aug 27 12:14:03 -  4032 - DoRewrites: Url (no decoding): '/_website/'
Fri Aug 27 12:14:03 -  4032 - EvaluateRules: depth=0
Fri Aug 27 12:14:03 -  4032 - EvaluateRules: Rule 1 : -1 (No match)
Fri Aug 27 12:14:03 -  4032 - EvaluateRules: returning 0
Fri Aug 27 12:14:03 -  4032 - DoRewrites: No Rewrite
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:03 -  4032 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:04 -  4032 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:04 -  4032 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:04 -  4032 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Aug 27 12:14:04 -  4032 - DoRewrites
Fri Aug 27 12:14:04 -  4032 - DoRewrites: Url (no decoding): '/_website/home/1/'
Fri Aug 27 12:14:04 -  4032 - EvaluateRules: depth=0
Fri Aug 27 12:14:04 -  4032 - EvaluateRules: Rule 1 : -1 (No match)
Fri Aug 27 12:14:04 -  4032 - EvaluateRules: returning 0
Fri Aug 27 12:14:04 -  4032 - DoRewrites: No Rewrite
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Aug 27 12:14:33 -  3004 - DoRewrites
Fri Aug 27 12:14:33 -  3004 - DoRewrites: Url (no decoding): '/_website/'
Fri Aug 27 12:14:33 -  3004 - EvaluateRules: depth=0
Fri Aug 27 12:14:33 -  3004 - EvaluateRules: Rule 1 : -1 (No match)
Fri Aug 27 12:14:33 -  3004 - EvaluateRules: returning 0
Fri Aug 27 12:14:33 -  3004 - DoRewrites: No Rewrite
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:33 -  3004 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:33 -  4032 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Aug 27 12:14:33 -  4032 - HttpFilterProc: cfg= 0x01D44488
Fri Aug 27 12:14:33 -  4032 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Aug 27 12:14:33 -  4032 - DoRewrites
Fri Aug 27 12:14:33 -  4032 - DoRewrites: Url (no decoding): '/_website/home/1/'
Fri Aug 27 12:14:33 -  4032 - EvaluateRules: depth=0
Fri Aug 27 12:14:33 -  4032 - EvaluateRules: Rule 1 : -1 (No match)
Fri Aug 27 12:14:33 -  4032 - EvaluateRules: returning 0
Fri Aug 27 12:14:33 -  4032 - DoRewrites: No Rewrite