View Single Post
Old 01-15-2009, 03:03 AM   #1 (permalink)
kokjj87
The Wanderer
 
kokjj87's Avatar
 
Join Date: Oct 2008
Posts: 18
Thanks: 0
kokjj87 is on a distinguished road
Default Need help of Mod Rewrite

Hi, i am trying to rewrite my url.
-the first rule will rewrite images/C.jpg to images/C.php.
But the second line of my mod rewrite would redirect all files except for(js, gif, jpg, png and css) to index.php.

The problem is, after my images/C.jpg is rewrite, the request will treat is as requesting a php file, and would be redirected to the index.php, so having a [L](Lock) would be useless too??

how do i solve this?

Thanks

I currently have this:
Code:
RewriteRule images/C.jpg images/C.php [NC,L]
RewriteRule !\.(js|gif|jpg|jpeg|png|css)$ index.php [NC,L]
And also Mod Rewrite, is really hard to debug. Is there any tools out there, that can help us to debug?
kokjj87 is offline  
Reply With Quote