Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何使用htaccess重写wordpress中的URL_Php_Wordpress_.htaccess - Fatal编程技术网

Php 如何使用htaccess重写wordpress中的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

我想在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/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]