Jump to content

[SOLVED] only with a ?


drifter

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/71727-solved-only-with-a/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.