url rewriting - How to use a RewriteRule to change endpoint url

admin2025-01-07  5

I'm using woocommerce and wordpress. I would like to know how to use a RewriteRule to change my url from: /my-account/edit-address/billing to /account/edit-address/billing and load the endpoint page content for billing address.

edit-address is a template file and loads content based on the endpoint billing or shipping

Is this possible

I'm using woocommerce and wordpress. I would like to know how to use a RewriteRule to change my url from: /my-account/edit-address/billing to /account/edit-address/billing and load the endpoint page content for billing address.

edit-address is a template file and loads content based on the endpoint billing or shipping

Is this possible

Share Improve this question asked Jan 25, 2016 at 10:01 jmillerjmiller 1014 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You should just need to change the permalink of the page in the back end of WordPress. You may also need to add the short code [woocommerce_my_account] to the page content depending on your version of WooCommerce. This would however also change the account page from my-account to just account aswell.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736262989a855.html

最新回复(0)