need help with rewrite rule

Topics: User Forum
Jan 11, 2010 at 6:11 PM

 

convert www.mydomain.com/pgname/eventname to www.mydomain.com/default.aspx?en=eventname&pg=pgname
  RewriteRule  ^/([^\./]+)/([^\./]+)$    /default.aspx?pg=$1&en=$2  [L]  
 # convert www.mydomain.com/eventname to www.mydomain.com/default.aspx?en=eventname
  RewriteRule  ^/([^\./]+)$    /default.aspx?en=$1  [L]  

#convert www.mydomain.com/pgname/eventname to www.mydomain.com/default.aspx?en=eventname&pg=pgname

  RewriteRule  ^/([^\./]+)/([^\./]+)$    /default.aspx?pg=$1&en=$2  [L]  

 

 # convert www.mydomain.com/eventname to www.mydomain.com/default.aspx?en=eventname

  RewriteRule  ^/([^\./]+)$    /default.aspx?en=$1  [L]  

 

I have the above rules, the 1st one is working only for the first time, the second request to it is not working..any idea what is happening??

 

Coordinator
Jan 11, 2010 at 7:31 PM

What does the log file say?

Jan 11, 2010 at 7:50 PM

DllMain THREAD_DETACH

Jan 11, 2010 at 8:08 PM

after changing the log level to 5 I see that the rewrite rule applies correctly but 

 

GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 15:00:28 -  5320 - GetServerVariable_AutoFree: 1 bytes
Mon Jan 11 15:00:28 -  5320 - GetServerVariable_AutoFree: result ''
Mon Jan 11 15:00:28 -  5320 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 15:00:28 -  5320 - GetHeader_AutoFree: 4 bytes   ptr:0x1D5B5E20
Mon Jan 11 15:00:28 -  5320 - GetHeader_AutoFree: 'method' = 'GET'

GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 15:00:28 -  5320 - GetServerVariable_AutoFree: 1 bytes

Mon Jan 11 15:00:28 -  5320 - GetServerVariable_AutoFree: result ''

Mon Jan 11 15:00:28 -  5320 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 15:00:28 -  5320 - GetHeader_AutoFree: 4 bytes   ptr:0x1D5B5E20

Mon Jan 11 15:00:28 -  5320 - GetHeader_AutoFree: 'method' = 'GET'

 

DoRewrites: Url: '/vinee/App_Themes/Default/StyleSheetWhite.css'

here "vinee" is not a folder name in the physical path, how can I avoid this

Coordinator
Jan 11, 2010 at 9:12 PM

Vinee, I don't know how to answer that. The snip of log you provide is not big enough to gain a clear picture of what's happening. Also I don't understand your question.

I think you are probably rewriting things you don't want to rewrite, but I can't tell.

Jan 11, 2010 at 9:27 PM

 

Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:30 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\eztest), 34 bytes, in ptr (0x1d5f7de8)
Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:30 -  2896 - DoRewrites
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 14 bytes   ptr:0x1D66B708
Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/eztest'
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: 1 bytes
Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D4314D0
Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:30 -  2896 - DoRewrites: Url: '/vinee/eztest'
Mon Jan 11 16:17:30 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:30 -  2896 - EvaluateRules: Rule 1 : 3 matches
Mon Jan 11 16:17:30 -  2896 - ReplaceServerVariables: InputString='/default.aspx?pg=$1&en=$2' out='/default.aspx?pg=$1&en=$2'
Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: src='/vinee/eztest','(null)' ReplacePattern='/default.aspx?pg=$1&en=$2' vec=[[  [  0, 13, 1, 6, 7, 13] [] ] counts=3,0
Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: replacing ($1) with 'vinee'
Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: replacing ($2) with 'eztest'
Mon Jan 11 16:17:30 -  2896 - ApplyCaseConversion: before '/default.aspx?pg=vinee&en=eztest'
Mon Jan 11 16:17:30 -  2896 - ApplyCaseConversion: after  '/default.aspx?pg=vinee&en=eztest'
Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: result '/default.aspx?pg=vinee&en=eztest'
Mon Jan 11 16:17:30 -  2896 - EvaluateRules: Result (length 32): /default.aspx?pg=vinee&en=eztest
Mon Jan 11 16:17:30 -  2896 - EvaluateRules: Last Rule
Mon Jan 11 16:17:30 -  2896 - EvaluateRules: returning 1
Mon Jan 11 16:17:30 -  2896 - DoRewrites: Rewrite Url to: '/default.aspx?pg=vinee&en=eztest'
Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:30 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\default.aspx), 34 bytes, in ptr (0x1d5f7de8)
Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:30 -  4880 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\App_Themes\Default\StyleSheet.css), 61 bytes, in ptr (0x1d5cb0c0)
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:32 -  2896 - DoRewrites
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 41 bytes   ptr:0x1D7146C8
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/App_Themes/Default/StyleSheet.css'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 1 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D7151F0
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/vinee/App_Themes/Default/StyleSheet.css'
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\StyleSheet.css), 42 bytes, in ptr (0x1d4ae2f8)
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:32 -  2896 - DoRewrites
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 22 bytes   ptr:0x1D453708
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/StyleSheet.css'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 1 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D3C5B48
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/vinee/StyleSheet.css'
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\App_Themes\Default\StyleSheetWhite.css), 66 bytes, in ptr (0x1d42d798)
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:32 -  2896 - DoRewrites
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 46 bytes   ptr:0x1D3C3548
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/App_Themes/Default/StyleSheetWhite.css'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 1 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D545CF0
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/vinee/App_Themes/Default/StyleSheetWhite.css'
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\WebResource.axd), 37 bytes, in ptr (0x1d5a3de0)
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:32 -  2896 - DoRewrites
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 64 bytes   ptr:0x1653CAD0
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/WebResource.axd?d=t4ucJoPmON2BkTe_6m56eQ2&t=633592481213906250'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 47 bytes
Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result 'd=t4ucJoPmON2BkTe_6m56eQ2&t=633592481213906250'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D4DAC20
Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/WebResource.axd?d=t4ucJoPmON2BkTe_6m56eQ2&t=633592481213906250'
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:32 -  4880 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:33 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\ScriptResource.axd), 40 bytes, in ptr (0x1d42d798)
Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:33 -  2896 - DoRewrites
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 142 bytes   ptr:0x1D64F0B8
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'url' = '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXW_1seHr079uHN3FdmspCkcqNoiVvCC503AA9rxKcKTc1&t=7538f448'
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 122 bytes
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result 'd=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXW_1seHr079uHN3FdmspCkcqNoiVvCC503AA9rxKcKTc1&t=7538f448'
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D68BF50
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:33 -  2896 - DoRewrites: Url: '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXW_1seHr079uHN3FdmspCkcqNoiVvCC503AA9rxKcKTc1&t=7538f448'
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:33 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:33 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\ScriptResource.axd), 40 bytes, in ptr (0x1d4ae2f8)
Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:33 -  2896 - DoRewrites
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 163 bytes   ptr:0x1D566870
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'url' = '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXb4JKL1oadQ0FIOSs6blXCfioYAmux2VRioG-RHYdc8tIVXIP6AwQ_cZFn2dnlGTm0&t=7538f448'
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:33 -   400 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 143 bytes
Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result 'd=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXb4JKL1oadQ0FIOSs6blXCfioYAmux2VRioG-RHYdc8tIVXIP6AwQ_cZFn2dnlGTm0&t=7538f448'
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D5176D0
Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:33 -  2896 - DoRewrites: Url: '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXb4JKL1oadQ0FIOSs6blXCfioYAmux2VRioG-RHYdc8tIVXIP6AwQ_cZFn2dnlGTm0&t=7538f448'
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:33 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:33 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:33 -   400 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:37 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP
Mon Jan 11 16:17:37 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\favicon.ico), 33 bytes, in ptr (0x1d42d798)
Mon Jan 11 16:17:37 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Mon Jan 11 16:17:37 -  2896 - DoRewrites
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: getting 'url'
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: 128 bytes
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: getting 'url'
Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 13 bytes   ptr:0x1D61EC08
Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 'url' = '/favicon.ico'
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: 1 bytes
Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: result ''
Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: getting 'method'
Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D39FEF8
Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 'method' = 'GET'
Mon Jan 11 16:17:37 -  2896 - DoRewrites: Url: '/favicon.ico'
Mon Jan 11 16:17:37 -  2896 - EvaluateRules: depth=0
Mon Jan 11 16:17:37 -  2896 - EvaluateRules: Rule 1 : -1 (No match)
Mon Jan 11 16:17:37 -  2896 - EvaluateRules: Rule 2 : -1 (No match)
Mon Jan 11 16:17:37 -  2896 - EvaluateRules: returning 0
Mon Jan 11 16:17:37 -  2896 - DoRewrites: No Rewrite
Mon Jan 11 16:17:42 -   596 - DllMain THREAD_DETACH
Mon Jan 11 16:17:42 -  4928 - DllMain THREAD_DETACH

 

Below is the full log. Hope this gives any idea.

My question is, on a browser with cookies and cache cleared the url (mydomain.com/vinee/eztest) works perfectly. But with the second request (mydomain.com/vinee/eztest), it doesn't pick up the theme and CSS until I clear my browser cache again.

As you can see in the log (items in red), the url shows that its looking for css in "vinee" folder, but the css is located in root folder that is GGPhotos.

 

Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:30 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\eztest), 34 bytes, in ptr (0x1d5f7de8)

Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:30 -  2896 - DoRewrites

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 14 bytes   ptr:0x1D66B708

Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/eztest'

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: 1 bytes

Mon Jan 11 16:17:30 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D4314D0

Mon Jan 11 16:17:30 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:30 -  2896 - DoRewrites: Url: '/vinee/eztest'

Mon Jan 11 16:17:30 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:30 -  2896 - EvaluateRules: Rule 1 : 3 matches

Mon Jan 11 16:17:30 -  2896 - ReplaceServerVariables: InputString='/default.aspx?pg=$1&en=$2' out='/default.aspx?pg=$1&en=$2'

Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: src='/vinee/eztest','(null)' ReplacePattern='/default.aspx?pg=$1&en=$2' vec=[[  [  0, 13, 1, 6, 7, 13] [] ] counts=3,0

Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: replacing ($1) with 'vinee'

Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: replacing ($2) with 'eztest'

Mon Jan 11 16:17:30 -  2896 - ApplyCaseConversion: before '/default.aspx?pg=vinee&en=eztest'

Mon Jan 11 16:17:30 -  2896 - ApplyCaseConversion: after  '/default.aspx?pg=vinee&en=eztest'

Mon Jan 11 16:17:30 -  2896 - GenerateReplacementString: result '/default.aspx?pg=vinee&en=eztest'

Mon Jan 11 16:17:30 -  2896 - EvaluateRules: Result (length 32): /default.aspx?pg=vinee&en=eztest

Mon Jan 11 16:17:30 -  2896 - EvaluateRules: Last Rule

Mon Jan 11 16:17:30 -  2896 - EvaluateRules: returning 1

Mon Jan 11 16:17:30 -  2896 - DoRewrites: Rewrite Url to: '/default.aspx?pg=vinee&en=eztest'

Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:30 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\default.aspx), 34 bytes, in ptr (0x1d5f7de8)

Mon Jan 11 16:17:30 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:30 -  4880 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\App_Themes\Default\StyleSheet.css), 61 bytes, in ptr (0x1d5cb0c0)

correct path is C:\websites\GGPhotos\App_Themes\Default\StyleSheet.css

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:32 -  2896 - DoRewrites

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 41 bytes   ptr:0x1D7146C8

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/App_Themes/Default/StyleSheet.css'

correct url : /App_Themes/Default/StyleSheet.css

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 1 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D7151F0

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/vinee/App_Themes/Default/StyleSheet.css'

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\StyleSheet.css), 42 bytes, in ptr (0x1d4ae2f8)

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:32 -  2896 - DoRewrites

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 22 bytes   ptr:0x1D453708

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/StyleSheet.css'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 1 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D3C5B48

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/vinee/StyleSheet.css'

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\vinee\App_Themes\Default\StyleSheetWhite.css), 66 bytes, in ptr (0x1d42d798)

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:32 -  2896 - DoRewrites

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 46 bytes   ptr:0x1D3C3548

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/vinee/App_Themes/Default/StyleSheetWhite.css'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 1 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D545CF0

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/vinee/App_Themes/Default/StyleSheetWhite.css'

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:32 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\WebResource.axd), 37 bytes, in ptr (0x1d5a3de0)

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:32 -  2896 - DoRewrites

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 64 bytes   ptr:0x1653CAD0

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'url' = '/WebResource.axd?d=t4ucJoPmON2BkTe_6m56eQ2&t=633592481213906250'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: 47 bytes

Mon Jan 11 16:17:32 -  2896 - GetServerVariable_AutoFree: result 'd=t4ucJoPmON2BkTe_6m56eQ2&t=633592481213906250'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D4DAC20

Mon Jan 11 16:17:32 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:32 -  2896 - DoRewrites: Url: '/WebResource.axd?d=t4ucJoPmON2BkTe_6m56eQ2&t=633592481213906250'

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:32 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:32 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:32 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:32 -  4880 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:33 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\ScriptResource.axd), 40 bytes, in ptr (0x1d42d798)

Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:33 -  2896 - DoRewrites

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 142 bytes   ptr:0x1D64F0B8

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'url' = '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXW_1seHr079uHN3FdmspCkcqNoiVvCC503AA9rxKcKTc1&t=7538f448'

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 122 bytes

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result 'd=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXW_1seHr079uHN3FdmspCkcqNoiVvCC503AA9rxKcKTc1&t=7538f448'

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D68BF50

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:33 -  2896 - DoRewrites: Url: '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXW_1seHr079uHN3FdmspCkcqNoiVvCC503AA9rxKcKTc1&t=7538f448'

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:33 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:33 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\ScriptResource.axd), 40 bytes, in ptr (0x1d4ae2f8)

Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:33 -  2896 - DoRewrites

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 163 bytes   ptr:0x1D566870

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'url' = '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXb4JKL1oadQ0FIOSs6blXCfioYAmux2VRioG-RHYdc8tIVXIP6AwQ_cZFn2dnlGTm0&t=7538f448'

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:33 -   400 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: 143 bytes

Mon Jan 11 16:17:33 -  2896 - GetServerVariable_AutoFree: result 'd=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXb4JKL1oadQ0FIOSs6blXCfioYAmux2VRioG-RHYdc8tIVXIP6AwQ_cZFn2dnlGTm0&t=7538f448'

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D5176D0

Mon Jan 11 16:17:33 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:33 -  2896 - DoRewrites: Url: '/ScriptResource.axd?d=XncM1NK_IWHN0xSnZInFwFU961NQdRtWjMUjFhrqFbo0Lph0WjR1PmlWkIrQWATXb4JKL1oadQ0FIOSs6blXCfioYAmux2VRioG-RHYdc8tIVXIP6AwQ_cZFn2dnlGTm0&t=7538f448'

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:33 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:33 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:33 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:33 -   400 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:37 -  2896 - HttpFilterProc: SF_NOTIFY_URL_MAP

Mon Jan 11 16:17:37 -  2896 - OnUrlMap: storing physical path (C:\websites\GGPhotos\favicon.ico), 33 bytes, in ptr (0x1d42d798)

Mon Jan 11 16:17:37 -  2896 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE

Mon Jan 11 16:17:37 -  2896 - DoRewrites

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: getting 'url'

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: 128 bytes

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: getting 'url'

Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 13 bytes   ptr:0x1D61EC08

Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 'url' = '/favicon.ico'

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: getting 'QUERY_STRING'

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: 1 bytes

Mon Jan 11 16:17:37 -  2896 - GetServerVariable_AutoFree: result ''

Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: getting 'method'

Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 4 bytes   ptr:0x1D39FEF8

Mon Jan 11 16:17:37 -  2896 - GetHeader_AutoFree: 'method' = 'GET'

Mon Jan 11 16:17:37 -  2896 - DoRewrites: Url: '/favicon.ico'

Mon Jan 11 16:17:37 -  2896 - EvaluateRules: depth=0

Mon Jan 11 16:17:37 -  2896 - EvaluateRules: Rule 1 : -1 (No match)

Mon Jan 11 16:17:37 -  2896 - EvaluateRules: Rule 2 : -1 (No match)

Mon Jan 11 16:17:37 -  2896 - EvaluateRules: returning 0

Mon Jan 11 16:17:37 -  2896 - DoRewrites: No Rewrite

Mon Jan 11 16:17:42 -   596 - DllMain THREAD_DETACH

Mon Jan 11 16:17:42 -  4928 - DllMain THREAD_DETACH

 

Coordinator
Jan 11, 2010 at 9:39 PM

If you want to rewrite requests for CSS URLs, then insert a rule that does that for you.

RewriteRule  ^/vinee/(.+\.css)$    /$1   [L]

 

Jan 11, 2010 at 10:13 PM
Edited Jan 11, 2010 at 10:17 PM

I tried it, (RewriteRule  ^/vinee/(.+\.css)$   /$1   [L])  helps css, but I have to repeat this to .jpg,.ico,.png

 

I have been using the below rule for 2 months and never faced this problem

# convert www.mydomain.com/eventname to www.mydomain.com/default.aspx?en=eventname

  RewriteRule  ^/([^\./]+)$    /default.aspx?en=$1  [L]  

 

Now I added this new rule which actually works on the first request and later doesn't pick up the theme for the 2nd request

 

# convert www.mydomain.com/pgname/eventname to www.mydomain.com/default.aspx?en=eventname&pg=pgname
  RewriteRule  ^/([^\./]+)/([^\./]+)$    /default.aspx?pg=$1&en=$2  [L]

 

# convert www.mydomain.com/pgname/eventname to www.mydomain.com/default.aspx?en=eventname&pg=pgname

  RewriteRule  ^/([^\./]+)/([^\./]+)$    /default.aspx?pg=$1&en=$2  [L]

 

 

one more thing I noticed that the autopostback event of my dropdown is not working

Did I do something wrong??

Coordinator
Jan 11, 2010 at 10:16 PM
Edited Jan 11, 2010 at 10:19 PM
vinee wrote:

I tried it, (RewriteRule  ^/vinee/(.+\.css)$   /$1   [L])  helps css, but I have to repeat this to .jpg,.ico,.png

That sounds right.

Now I added this new rule which actually works on the first request and later doesn't pick up the theme for the 2nd request

I don't know what that means. I think you are rewriting things you don't want to rewrite, with that rule.

one more thing I noticed that the autopostback event of my dropdown is not working

Did I do something wrong??

Yes. I think you are rewriting things you don't want to rewrite with that new rule. For example, .css files, .jpg files, and so on.

Jan 12, 2010 at 7:42 PM

I tried  differently this time but its not working for me.

this is what I'm trying to do

1. redirect www.host.domain.com to www.domain.com/default.aspx?pg=host

2. redirect www.host.domain.com/event to www.domain.com/default.aspx?pg=host&en=event

please help me

Coordinator
Jan 12, 2010 at 8:42 PM

yes I understand it's not working.  As I said, you need to deal with the CSS JPG and so on. 

Those things are getting a URL path and you need them to not have that path.  I think browsers are requesting /event/whatever.css and you need them to request /whatever.css.   So, use a rule to remove that path element. 

Also, you need to read and learn a little more.  You're confusing things.  Earlier you said you wanted a rewrite, now most recently you said you wanted redirect.  They are different, and I get the feeling you are mixing the meanings or using them interchangeably.  either you are confused, or I am confused. I think it's you.

If you read a little more, I'll bet neither of us will be confused.

There are tons of examples on this stuff in the documentation, including an example that covers exactly what you described.   I know how tedious it can be to actually read it, but it's all explained there. 

RTFM

Jan 12, 2010 at 9:43 PM

Sorry I interchanged the terms. All I want is to redirect. 

I used the below rule

 

RewriteCond %{HTTP_HOST} ^(?!www)([^.]+)\.mydomain\.com [I]
RewriteRule ^/(.*)$      /mypage.aspx?host=*1 [U,L]

 

but I get the following error on the browser

 

Address cannot be found
The browser could not find the host server for the provided address.

Address cannot be found

The browser could not find the host server for the provided address.

And the log 
Tue Jan 12 16:35:56 -  5520 - DllMain THREAD_DETACH
Tue Jan 12 16:35:56 -  2020 - DllMain THREAD_DETACH
Tue Jan 12 16:35:56 -  6088 - DllMain THREAD_DETACH
Tue Jan 12 16:36:56 -  4820 - DllMain THREAD_DETACH
Is it not reaching the IIS server????

 

Coordinator
Jan 12, 2010 at 10:00 PM
Edited Jan 12, 2010 at 10:01 PM

If you want to redirect, then your rule is wrong.  You are using a RewriteRule.

The THREAD_DETACH message is not meaningful for purposes of examining the flow of a request.  It just means that a thread is no longer active in the process.

Those 4 statements indicate 4 threads have detached from the process.

There are other statements in the log, if you have the log level set to something reasonable.  The other statements will show you what happened with the vvarious requests.

Jan 12, 2010 at 10:08 PM

 

I'm sorry again, I'm trying to rewrite not redirect.

I have the log level to 5, if I have other rules it shows up in log, right now I just have one rule (the above one), and its not showing up in the log after the request to the site.

Thats why I felt that the request is not reaching the server, do I have to make any change on the IIS server????

Coordinator
Jan 13, 2010 at 1:18 AM

Have you read the documentation?

Jan 13, 2010 at 1:56 AM

yes, I did

Jan 13, 2010 at 2:09 AM

can u point me to my mistake, I have applied the isapi filter for the website.

 

Coordinator
Jan 13, 2010 at 4:25 AM
Edited Jan 13, 2010 at 4:29 AM

I'm not holding back to be a pain in the arse.  I don't know the mistake. 

What I surmise is, you don't have enough depth to ask a question in a way I can answer it.  Here are some things that make up a good, answerable question:

  • a precise and accurate statement of what you want to happen, using appropriate meaningful words.  Rewrite means rewrite.  Redirect means redirect.  You have used them alternatiely, and I'm not clear at all on what you want.
  • a precise and accurate statement of what you observe is happening, using appropriate language.  The rewrite is occurring, or it is not.  The redirect occurs, or it does not. What precisely did you observe
  • An exact listing of the configuration you are using
  • a meaningful excerpt from the IIRF log file

With that kind of question, I can provide an answer.  My answer will use terms like Rewrite and Redirect, and you'll need to be able to understand those terms to understand my response.


Now, look back how this dialog went.

Your first question used the word "convert" - I want to "convert" URL xxx to URL YYY  - I don't know what that means.  That requires me to ask, ok, what is convert?  Is that a rewrite?  A redirect?  something else?  I don't know.  I thought it was one thing (Rewrite), but then you switched (you said redirect), then you switched back.  I think.

your initial observation was:  at first it works, then it doesn't.  What do you mean "it doesn't work"?  That doesn't help me at all.

You can see how tedious and error prone it is for both of us to go back and forth to zero in on the relevant information, to identify, just what is the question here?  On the other hand if you have a good understanding  of what you want, and a good observation of what you are actually seeing, then more often than not, I can help you immediately.


That's why I asked, did you read the doc?   Your questions indicate to me a lack of understanding. It's not a criticism.  It's just me pointing out that I don't know how to answer you, or solve your problem.  I don't know what the problem is.  I don't understand your question, and I think if you understood rewriting and redirecting better, you'd be able to ask a question in a way I could better answer.

In the doc, there's a nice section on troubleshooting.  It talks about all this. The first thing it says is, use the IIRF log.  Notice that my first response to you was, What does the log say?