Adventure Game Studio

AGS Development => Site & Forum Reports => Topic started by: fernewelten on Mon 15/07/2019 12:04:15

Title: "yabb" in URLs: rewrite to "forums"
Post by: fernewelten on Mon 15/07/2019 12:04:15
Hi,

A lot of forum posts contain links that have "/yabb/" in them, e.g. http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29356.0  This even pertains to sticky posts, for instance the post "Quick Links to Forum Tutorials!" in the Critic's Lounge.

These links are all broken. There must have been a site reorganisation that moved all URLs http://www.adventuregamestudio.co.uk/yabb/index.php to the respective URLhttp://www.adventuregamestudio.co.uk/forums/index.php . But contents of existing posts weren't changed, so all links to older posts were left dangling.

Now I'm no website buff but I seem to recall that websites can have a place for "rewriting rules" or some such. Mainly, if some incoming request asks for an URL of a certain form, reply with the content of a changed URL instead. So wouldn't it be possible enter a rule to rewrite all URLs that contain "/yabb/" automatically to use "/forums/" instead?

That would probably be only one line in one place to repair tons of broken links in one fell swoop.

Some information I turned up with a quick search (https://www.smashingmagazine.com/2011/11/introduction-to-url-rewriting/#how-to-rewrite-urls): https://www.smashingmagazine.com/2011/11/introduction-to-url-rewriting/#how-to-rewrite-urls
Title: Re: "yabb" in URLs: rewrite to "forums"
Post by: AGA on Thu 08/08/2019 17:47:20
Done.