vinaya Posted June 20, 2015 Share Posted June 20, 2015 (edited) Hello, I have used RewriteRule for "/cart.php?gid=1" in Htaccess as following, it works correctly: RewriteRule ^linux-shared-hosting$ ./cart.php?gid=1 [L] Now I want to redirect "http://ehostify.com/manage/cart.php?gid=1" to "http://ehostify.com/manage/linux-shared-hosting". For this I have used following Htaccess rule but it is not working(where manage is the whmcs folder) Redirect 301 /cart.php?gid=1 http://ehostify.com/manage/linux-shared-hosting I have also used another Htaccess rule which are following but it gives an error on frontend that "This webpage has a redirect loop". RewriteCond %{REQUEST_URI} ^/manage/cart\.php$ RewriteCond %{QUERY_STRING} ^gid=1$ [NC] RewriteRule ^(.*)$ http://ehostify.com/manage/linux-shared-hosting? [R=301,L] Can I make any mistake If so Please correct me or tell me any another rule in Htaccess to redirect "/cart.php?gid=1" to "http://ehostify.com/manage/linux-shared-hosting". Thanks. Edited June 20, 2015 by vinaya 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.