Php 如何使用htaccess重写wordpress中的URL
我想在wordpress中使用htaccess更改URL,但仍然没有任何解决方案Php 如何使用htaccess重写wordpress中的URL,php,wordpress,.htaccess,Php,Wordpress,.htaccess,我想在wordpress中使用htaccess更改URL,但仍然没有任何解决方案 这是我当前的网址 http://localhost/demo/wp-content/plugins/woocommerce-business-card-flyer-designer/includes/wvsd-custom-design-frontend.php?product_id=3270&page=wbfd_design_page&type=wbfd_design 我想像这样更改这个URL
这是我当前的网址
http://localhost/demo/wp-content/plugins/woocommerce-business-card-flyer-designer/includes/wvsd-custom-design-frontend.php?product_id=3270&page=wbfd_design_page&type=wbfd_design
我想像这样更改这个URL
http://localhost/demo/shop/id-card/internation-card
我尝试了很多不同的方法使用核心php、WordPress函数和其他可能的选项,但我没有得到任何解决方案,可以更改此级别的URL重写,如果是,请给我解决方案。感谢您在.htaccess中使用此选项:
RewriteRule demo/shop/id-card/internation-card demo/wp-content/plugins/woocommerce-business-card-flyer-designer/includes/wvsd-custom-design-frontend.php?product_id=3270&page=wbfd_design_page&type=wbfd_design [NC]