drifter Posted October 3, 2007 Share Posted October 3, 2007 I have all of my rules working good except this one... RewriteRule ^([^?]+)/?([^/]+)/([^/]+)$ $1?$2=$3 [L] My goal is to get app.php?t/5 => app.php?t=5 app.php?mode/test => app.php?mode=test this works fine and does it, but it also messes up things that do not have a ? like includes/style.css So is there a way to get it to only work when the is a ? - do i need a conditional for this? If I take this line out, the css files will work so I know it is this line messing it up. Thanks for any help. Scott Quote Link to comment Share on other sites More sharing options...
drifter Posted October 3, 2007 Author Share Posted October 3, 2007 JUST FYI - I went into one of my previous rules and did not use the ? and used XX instead Then I was able to do RewriteRule ^([^?]+)\.phpXX([^/]+)/([^/]+)$ $1.php?$2=$3 [L] This seems to work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.