url rewriting - How can I add a vanity URL for admin-ajax.php Calls?

BackgroundI'm using the admin-ajax tool in WordPress to build a file generator. I have everything working, except t

Background

I'm using the admin-ajax tool in WordPress to build a file generator. I have everything working, except that the current URL is ugly. I'd like to add a vanity URL that looks cleaner.

My Code

I am already using one vanity URL structure which works perfectly:

RewriteRule ^products/(building-automation|lighting-controls)/details/([^/]*) /?pagename=products/details&SKU=$2 [QSA,L]

However, this new one is not working:

RewriteRule ^downloads/datasheet-generator/([^/]*) /www/wp-admin/admin-ajax.php?action=fdm_generate_datasheet&SKU=$2 [QSA,L]

Question

Why would this not be working?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744830163a4596034.html

相关推荐

  • url rewriting - How can I add a vanity URL for admin-ajax.php Calls?

    BackgroundI'm using the admin-ajax tool in WordPress to build a file generator. I have everything working, except t

    2天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信