vinaya Posted February 18, 2015 Share Posted February 18, 2015 Hello Sir/Madam, How to define rewrite rule for whmcs frontend URL for example: http://ehostify.com/manage/cart.php?a=add&domain=register and http://ehostify.com/manage/cart.php?gid=19&pid=71. Waiting for your reply. Thanks Vinaya 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 18, 2015 Share Posted February 18, 2015 the post below might give you some further information for using rewrite... http://forum.whmcs.com/showthread.php?79330-Redirect-product-group-to-other-URL&p=338918#post338918 0 Quote Link to comment Share on other sites More sharing options...
vinaya Posted February 20, 2015 Author Share Posted February 20, 2015 the post below might give you some further information for using rewrite... http://forum.whmcs.com/showthread.ph...918#post338918 Thanks it works for rewrite whmcs url, but when I redirect /cart.php?gid=1 url from whmcs admin then it gives error: "This webpage has a redirect loop". Can you tell me What will I do? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 22, 2015 Share Posted February 22, 2015 when you say redirect from whmcs admin, what do you mean? your question was about the client side, so i'm unsure why you would need to redirect on the admin side... 0 Quote Link to comment Share on other sites More sharing options...
vinaya Posted February 23, 2015 Author Share Posted February 23, 2015 when you say redirect from whmcs admin, what do you mean? your question was about the client side, so i'm unsure why you would need to redirect on the admin side... I mean to said, I want to redirect "http://ehostify.com/manage/cart.php&gid=1" to "http://ehostify.com/manage/Linux-hosting". For this I wrote rewrite rule in .htaccess which works but I want to redirect "/cart.php&gid=1" url for this I set "/Linux-hosting" url in whmcs admin module setting but when I load "/cart.php&gid=1" url it returns "This webpage has a redirect loop" error. So please tell me Is there any rule in .htaccess to redirect above url? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 24, 2015 Share Posted February 24, 2015 wouldn't it be easier to set the url in the whmcs addon to "/cart.php&gid=1" - that should avoid the redirect loop. 0 Quote Link to comment Share on other sites More sharing options...
vinaya Posted February 25, 2015 Author Share Posted February 25, 2015 Thanks for reply. I want to know that Is there any redirect rule in .htaccess to redirect "/cart.php?gid=1&pid=1" url ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 25, 2015 WHMCS Support Manager Share Posted February 25, 2015 Hi, The file /cart.php?gid=1&pid=1 would not be valid. You'd only need /cart.php?pid=1 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 25, 2015 Share Posted February 25, 2015 You can also try with this approach that requires patience. First put this into your .htaccess (change URLs accordingly). RewriteRule ^shared-hosting /cart.php?gid=1 RewriteRule ^dedicated-servers /cart.php?gid=2 RewriteRule ^vps /cart.php?gid=3 Now that that your /shared-hosting opens /cart.php?gid=1, open all cart tpl files. Find: {$smarty.get.gid} Replace with: {$productgroup.name} Done. Now all your visitors will use only the rewritten URLs. You can do the same with products. 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.