pikerr Posted June 3, 2019 Share Posted June 3, 2019 (edited) Dear All, I would like to rename https://<removed at posters request>.com/client/cart.php?gid=1 to https://<removed at posters request>.com/client/EuropeVPS I understand that I can change in .htaccess file in the WHMCS installation root. I have tried to insert however it does not change. any advice? SetEnv PHPRC /home/<removed at posters request>/public_html/<removed at posters request>/client/php.ini ### BEGIN - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ### <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} ^/cart\.php$ RewriteCond %{QUERY_STRING} ^gid=1$ RewriteRule ^(.*)$ https://<removed at posters request>.com/client/EuropeVPS [R=302,L] # RewriteBase is set to "/" so rules do not need updating if the # installation directory is relocated. It is imperative that # there is also a RewriteCond rule later that can effectively get # the actual value by comparison against the request URI. # # If there are _any_ other RewriteBase directives in this file, # the last entry will take precedence! RewriteBase / # Redirect directories to an address with slash RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] RewriteCond %{REQUEST_URI} ^/cart\.php$ RewriteCond %{QUERY_STRING} ^gid=1$ RewriteRule ^(.*)$ https://<removed at posters request>.com/client/EuropeVPS [R=302,L] # Send all remaining (routable paths) through index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Determine and use the actual base RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$ RewriteRule ^.*$ %2index.php [QSA,L] </IfModule> ### END - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ### Thank you Kelvin Edited June 26, 2019 by WHMCS ChrisD Removed references to sites from post at posters request 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.