Hello All,
Hope all of you are doing well. Can anyone help me to translate the urls for customers and checkout.
Eg : domian.com/customer/address/index => domain.com/customurl
domain.com/customer/account/createpassword => domain.com/customurl
domain.com/customer/account/forgotpassword => domain.com/customurl
domain.com/checkout#shiiping => domain.com/customurl#customhash
Like these I have to translate some other urls also. I tried with url rewries in admin side. But I think that will not work for all my cases.
Eg : domain.com/checkout/onepage/success
Any help is really appreciated.
Thank you
Solved! Go to Solution.
Yes ! it is possible once you create Url-rewrite like above you'll be able to use the pages with the new URL but it will take extra coding efforts as I share you've to change the URL which is generating on frontend or the URL redirecting in controller (For example order success : you've to change the URL with your new url in code as well).
Hi @sayanth_k
Kindly refer below link for lean URL rewrite functionality with Magento2:
https://magecomp.com/blog/magento-2-url-rewrite/
It may help you.
If issue resolve, please click on 'Kudos' & Accept as Solution!
For eg:
domain.com/checkout/onepage/success => domain.com/translatedurl
How can I do this with rewrite module ?
Hi
As per my understanding, you want to make alias for the given pages but the URL have to remain same as it picks the data from the URL domain.com/{route}/{controller-name}/{action}
but this is now possible for three areas :
[Product Page, Category Page, CMS Page]
But I tried one way which would also need code customisation, I created new URL for my cart page by following way :
Marketing > URL Rewrites (Under SEO & Search) > Add URL rewrite
php bin/magento indexer:reindex php bin/magento c:f
@gaurav_harsh1Yes, this what I am looking for, but is it possible to change the below urls ?
domain.com/checkout/onepage/success => domain.com/translatedurl
domain.com/customer/account/createpassword => domain.com/translatedurl
These are generated inside magento, how can I change these
Thank you
Yes ! it is possible once you create Url-rewrite like above you'll be able to use the pages with the new URL but it will take extra coding efforts as I share you've to change the URL which is generating on frontend or the URL redirecting in controller (For example order success : you've to change the URL with your new url in code as well).