I made a special registration module for Opencart,
my registration page has the following URL:
www.mysite.com/index.php?route=account/customregister
while the default registration page URL is:
www.mysite.com/index.php?route=account/register
I want to redirect users to my registration page (route = account / customregister) when users click on any link pointing to the default registration module (route = account / register). I know that I can edit the .htaccess file to do URL redirection or rewriting, but I want to do this with php. Does anyone know if there is some class / function or some code that I can put on the extension to automatically redirect users to the new URL?
Thanks to everyone in advance.
Ps I can not change the main files, and I would not edit .htaccess.
Frank source share