Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
braymond64 Posted December 12, 2016 Posted December 12, 2016 Prior to our upgrade to version 4, we used to be able to use short links for our topics. For example, one original thread was (full URL)http://forums.accellera.org/topic/1392-missing-proxy-to-automatically-cast-an-sc_bv-element-to-a-bool/ which was also accessible via a short URL:http://forums.accellera.org/topic/1392-/ But the latter now gives a page does not exist error message wiith code 1S160/2. IP support said that it was unintended that shortened URLs would work at all in the previous version, so it was just a fluke. Does anybody know of a plug-in that would allow me to make this work? Thanks, braymond
Nathan Explosion Posted December 12, 2016 Posted December 12, 2016 You'll probably find that the following works: http://forums.accellera.org/topic/1392-m As well as the following:http://forums.accellera.org/topic/1392-hhttp://forums.accellera.org/topic/1392-p Still a fluke, most likely.
braymond64 Posted December 12, 2016 Author Posted December 12, 2016 Wow, how interesting. Doing more tests so far I can put any letter after the dash and it will redirect to the full URL. It doesn't help with existing links that end at the dash, but it is a way to use shorter URLs ... as long as these also keep working through upgrades. :-) Thanks for the information!
braymond64 Posted December 12, 2016 Author Posted December 12, 2016 So if anybody knows of a plug-in for a long-term solution, please let me know. Thanks, braymond
braymond64 Posted December 12, 2016 Author Posted December 12, 2016 It just occurred to me that I might be able to make this work via a mod_rewrite in the .htaccess file. I don't know what the code would be, but if I were to rewrite http://forums.accellera.org/topic/####-/ to http://forums.accellera.org/topic/####-n/ Then the tool would do the additional work to get it to the right location since it seems to be working with any letter after the dash. This may also break in subsequent versions so I wouldn't promote its use going forward, but it would at least fix any existing (now broken) links. Does this make sense? If so, do you know what the redirect code would be? I admit I'm not .htaccess savvy. It would need to work with any number of numbers for the topic -- I couldn't guarantee there would be just 4. Thanks, braymond
Recommended Posts
Archived
This topic is now archived and is closed to further replies.