bluedaniel Posted July 13, 2009 Share Posted July 13, 2009 From a GET form this URL appears: http://www.whatcouldicook.com/compare.php?recipeID=1169&compare2=1110 I need that to look like: http://www.whatcouldicook.com/recipes/compare/1169-1110 I just cant get the .htaccess code right Quote Link to comment https://forums.phpfreaks.com/topic/165815-cant-do-a-simple-enough-redirect/ Share on other sites More sharing options...
wildteen88 Posted July 13, 2009 Share Posted July 13, 2009 What code are you using now? Quote Link to comment https://forums.phpfreaks.com/topic/165815-cant-do-a-simple-enough-redirect/#findComment-874668 Share on other sites More sharing options...
bluedaniel Posted July 13, 2009 Author Share Posted July 13, 2009 Ive got this: RewriteRule ^recipes/compare/([0-9]+)-([0-9]+)/?$ compare.php?recipeID=$1&compare2=$2 [NC,L] # Handle recipe requests So http://www.whatcouldicook.com/recipes/compare/1169-1110 does work, but I want http://www.whatcouldicook.com/compare.php?recipeID=1169&compare2=1110 to be redirected instantly without the user knowing Quote Link to comment https://forums.phpfreaks.com/topic/165815-cant-do-a-simple-enough-redirect/#findComment-874836 Share on other sites More sharing options...
wildteen88 Posted July 14, 2009 Share Posted July 14, 2009 You will need to edit your links to reflect your new url format. mod_rewrite cannot modify your links. Quote Link to comment https://forums.phpfreaks.com/topic/165815-cant-do-a-simple-enough-redirect/#findComment-875264 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.