johnnyjohnny Posted July 14, 2009 Share Posted July 14, 2009 Is it possible to turn "control/test/hello?you=me" into "control/test?request=hello&you=me"? Tried using: RewriteRule ^control/(.+)/(.+)\?(.+)$ control/$1?request=$2&$3 Didn't seem to work. Thanks for any help. ??? Quote Link to comment https://forums.phpfreaks.com/topic/165938-htaccess/ Share on other sites More sharing options...
JonnoTheDev Posted July 14, 2009 Share Posted July 14, 2009 It seems you are trying to add more parameters onto an already rewritten url. I don't think this is possible. Paramaters start with ? i.e. http://dsfsdf.php? As the position of this has already been defined in the rewrite rule adding another after params will no work. If the url is not using the rewrite then you can use as many paramaters as you like ie. control.php?request=hello&you=me Quote Link to comment https://forums.phpfreaks.com/topic/165938-htaccess/#findComment-875197 Share on other sites More sharing options...
johnnyjohnny Posted July 14, 2009 Author Share Posted July 14, 2009 I understand that, but to me this way it's nicer as "request" is implied. It seems you are trying to add more parameters onto an already rewritten url. I don't think this is possible. Paramaters start with ? i.e. http://dsfsdf.php? As the position of this has already been defined in the rewrite rule adding another after params will no work. If the url is not using the rewrite then you can use as many paramaters as you like ie. control.php?request=hello&you=me Quote Link to comment https://forums.phpfreaks.com/topic/165938-htaccess/#findComment-875220 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.