jmginer Posted October 1, 2013 Share Posted October 1, 2013 Hi, I have a product group with good SEO, and I want redirect to other URL. If someone enter to the cart.php?gid=10, then redirects to other URL webpage. Is it possible? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 1, 2013 Share Posted October 1, 2013 you could probably do it by modifying your .htaccess file (or create one) and add the following... Rewrite Engine on RewriteCond %{REQUEST_URI} cart\.php\?gid\=10 RewriteRule *. otherpage.php - [R,L] 0 Quote Link to comment Share on other sites More sharing options...
jmginer Posted October 2, 2013 Author Share Posted October 2, 2013 you could probably do it by modifying your .htaccess file (or create one) and add the following... Internal server error 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 2, 2013 Share Posted October 2, 2013 Internal server error ok, just tried it and I got the same... my mistake. try the following - i've tried this on my WHMCS and it works... RewriteEngine OnRewriteCond %{REQUEST_URI} ^/cart\.php$ RewriteCond %{QUERY_STRING} ^gid=10$ RewriteRule ^(.*)$ http://www.domain.com/cart.php?gid=1 [R=302,L] this redirects visitors from cart.php?gid=10 -> cart.php?gid=1 the URL in the rewrite rule must contain the full domain, but can redirect to any page - so you could use http://www.domain.com/otherpage.php if you wish. 0 Quote Link to comment Share on other sites More sharing options...
jmginer Posted October 3, 2013 Author Share Posted October 3, 2013 ok, just tried it and I got the same... my mistake. try the following - i've tried this on my WHMCS and it works... this redirects visitors from cart.php?gid=10 -> cart.php?gid=1 the URL in the rewrite rule must contain the full domain, but can redirect to any page - so you could use http://www.domain.com/otherpage.php if you wish. Thanks very much!!!!!! 0 Quote Link to comment 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.