Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

How to make short discussion URLs for Vanilla

LincLinc Director of DevelopmentDetroit Vanilla Staff
edited January 2016 in Development

A typical Vanilla discussion URL looks like this: https://vanillaforums.org/discussion/31488/how-to-make-short-discussion-urls-for-vanilla

That's a lot of characters, especially when using something like Twitter, or even just when you need to type it out on, say, your phone. There's a quick way around this however because Vanilla only really needs the DiscussionID number, and you can make your own routing rules. Go to Routes in your Dashboard and add this:

  • Expression: ^d/([\d]*)
  • Target: discussion/$1
  • Type: Permanent (301)

Now you can use this short link structure: https://vanillaforums.org/d/31488

Give it a shot on this site. :chuffed:

whu606ShadowdarephreakhgtonightCansili
Sign In or Register to comment.