Jump to content

How to redirect url in whmcs


vinaya

Recommended Posts

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 by vinaya
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