Jump to content

Short URLs


braymond64

Recommended Posts

Posted

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

Posted

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!

Posted

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...