jaymc Posted July 16, 2008 Share Posted July 16, 2008 I use url rewritting to turn this ?where=food&like=beans/cheese into this /where/like/beans/cheese Spot the problem? My search clause is beans/cheese, however when in a URL it thinks its another directory because of the slash. Even when I use php's urlencode it still does not work. What can I do to stop this? Quote Link to comment https://forums.phpfreaks.com/topic/115128-solved-url-rewrite-issue/ Share on other sites More sharing options...
trq Posted July 16, 2008 Share Posted July 16, 2008 Don't use / as a delimter in urls, thats just asking for trouble. Can you change it somehow to + Quote Link to comment https://forums.phpfreaks.com/topic/115128-solved-url-rewrite-issue/#findComment-592054 Share on other sites More sharing options...
jaymc Posted July 16, 2008 Author Share Posted July 16, 2008 No because the urls are generated by members, so if the use a slash.. its on the system Is their a way arond this server/code side Quote Link to comment https://forums.phpfreaks.com/topic/115128-solved-url-rewrite-issue/#findComment-592068 Share on other sites More sharing options...
trq Posted July 17, 2008 Share Posted July 17, 2008 Can we see your rewrite rule? Quote Link to comment https://forums.phpfreaks.com/topic/115128-solved-url-rewrite-issue/#findComment-592127 Share on other sites More sharing options...
jaymc Posted July 17, 2008 Author Share Posted July 17, 2008 RewriteRule ^music/search/([a-zA-z]+)/([a-zA-z]+)/(.+)/(.+)?$ ?open=music&page=$1&$2=$3&search=$4 [L] Not sure if there is a way around it as it needs the slash as a delimter and to follow web standard? Quote Link to comment https://forums.phpfreaks.com/topic/115128-solved-url-rewrite-issue/#findComment-592396 Share on other sites More sharing options...
jaymc Posted July 19, 2008 Author Share Posted July 19, 2008 Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/115128-solved-url-rewrite-issue/#findComment-594343 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.