我想向 WooCommerce 网上商店添加类别。如果单击该类别,则需要将其重定向到外部网页。例如,如果访问以下 URL:
website.nl/product-categorie/aanhangwagen-verhuur/
它应该被重定向到 example.com/
我已经尝试过这个,但没有成功:
Options +FollowSymLinks
RewriteRule ^产品类别/aanhangwagen-verhuur$ http://example.com/ [R=301,L]
最佳答案
您可以使用 Redirect :
Redirect permanent /product-categorie/aanhangwagen-verhuur/ http://example.com/
关于WordPress 与 WooCommerce .htaccess 类别重定向到外部页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27355101/