Jump to content

Rewrite Rule for whmcs URL


vinaya

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated