Jump to content
pikerr

Enquiry on renaming the URL to more SEO friendly

Recommended Posts

Dear All,

I have tried to edit from .htaccess file for the below 5 gids products to rename the URL , the renaming URL works however the group products always point to Europe (https://vantagevps.com/client/cart.php?gid=1). May I know how WHMCS structure works? which file can I edit ?

I have attached Europe_VPS.JPG , the URL renaming is correct (the original url is https://vantagevps.com/client/cart.php?gid=1), it points correctly to Europe cart.
I have attached USA_VPS.JPG , the URL renaming is correct (the original url is https://vantagevps.com/client/cart.php?gid=2 )however it points incorrectly to Europe cart.

.Htaccess File

RewriteCond %{QUERY_STRING} ^gid=1
RewriteRule ^(.*)$ https://vantagevps.com/client/cart.php?EuropeVPS

RewriteCond %{QUERY_STRING} ^gid=2
RewriteRule ^(.*)$ https://vantagevps.com/client/cart.php?USAVPS

Thank you

Europe_VPS.JPG

USA_VPS.JPG

.htaccess.JPG

USA.JPG

Share this post


Link to post
Share on other sites
Posted (edited)

Even without your rewrite, the direct URLs:
https://vantagevps.com/client/cart.php

https://vantagevps.com/client/cart.php?EuropeVPS

https://vantagevps.com/client/cart.php?USAVPS

https://vantagevps.com/client/cart.php?gid=1

point all to the same target.

The issue is that your https://vantagevps.com/client/cart.php?whatever does not work, and so point to https://vantagevps.com/client/cart.php (which is the default, ignoring the following parameter ?whatever )

How did you set up these URLs?

 

Edited by Remitur

Share this post


Link to post
Share on other sites

Dear Remitur,

We engaged a web designer to setup our website thus Im not sure how to go about.

From my understand, the products items table press is using  CSS3 Responsive Web Pricing Tables Grid. 

For example, I click on one product, the link is a href="https://vantagevps.com/client/cart.php?a=add&pid=1&configoption[1]=1" class="sign_up radius3">USD26.88

however it bring me to https://vantagevps.com/client/cart.php?a=confproduct&i=0. When I tried to click on another product, it bring me to https://vantagevps.com/client/cart.php?a=confproduct&i=1 , the number keep changing based on running number.

 

Any advise for me to check how does this setup?

I tried to get answer from my web designer (vendor) however there is no reply from them for weeks

Thank you

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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