• Resolved Kenn

    (@kennsampson)


    Hello, we are very happy with the plugin and have a question regarding the url coupons. Is it possible to not have a prefix for the url. So instead of https://example.com/coupon/coupon-code. It can just be https://example.com/coupon-code ?

    We tried changing the prefix to just “/“ and while it does change the link it ends up sending the site in to an infinite redirect loop. Leaving the prefix empty entirely leaves the link with the post type for shop_coupon with example.com/shop_coupon/coupon-code.

    Is it also possible to have custom prefix depending on coupon category?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hey Kenn,

    You do need the prefix to avoid slug collisions.

    Probably the easiest way forward for you would be to put in a redirect from /coupon-code/ to /coupon/coupon-code/ using either .htaccess or via a redirection plugin.

    To do the category in the slug you’d probably have to fiddle with the rewrite rule. Unless you’re trying to achieve something specific the above redirecting method is probably your easiest way home.

    Hope this helps!

    • This reply was modified 2 years, 9 months ago by Josh Kohlbach.
Viewing 1 replies (of 1 total)
  • The topic ‘URL coupon without prefix’ is closed to new replies.