graham23s Posted May 15, 2010 Share Posted May 15, 2010 Hi Guys, I'm not sure if this is an .htaccess problem or my php, i have my site pages rewritten like: Options +FollowSymLinks RewriteEngine on RewriteRule contact-us contact-us.php? RewriteRule home index.php? RewriteRule login login.php? RewriteRule privacy-policy privacy-policy.php? RewriteRule shopping-cart shopping-cart.php? RewriteRule sitemap sitemap.php? RewriteRule terms-of-service terms-of-service.php? On my cart page i was trying to remove items, normally i would do: shopping-cart.php?action=remove, i assume because i have rewritten the URLs i don't have access to the $_GET so i tried shopping-cart/?action-remove but no luck any help would be appreciated thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/201847-get-request-problem/ Share on other sites More sharing options...
CodeMaster Posted May 15, 2010 Share Posted May 15, 2010 This should do the trick RewriteRule ^contact-us?{query_string}$ contact-us.php?{query_string} Link to comment https://forums.phpfreaks.com/topic/201847-get-request-problem/#findComment-1058811 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.