Solved: Old thread links produce 404

Please register or login

Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.

Benefits of registering include

  • Ability to post and comment on topics and discussions.
  • A Free photo gallery to share your dive photos with the world.
  • You can make this box go away

Joining is quick and easy. Log in or Register now!

There was a table that converted old links and I used .htaccess rewrite rules to access these old links, but yours doesn't appear to conform to the method

perhaps it's this?

Old regs, worth playing with?

Try using the post ID from your links but after

sb URL / community / posts / post ID (spaces added)

Code:
https://www.scubaboard.com/community/posts/5256286
 
Last edited:
Can't make the link work either. Found your excellent writeup as a copy paste 'size matters' from on the double hose forum. Is this the right text?

If the old o-ring appears to be a standard size, i.e. 1/16 inch cross section, measure the outside diameter of the stem the o-ring fits on and multiply by .98 to give you the inside diameter of the o-ring you need. Go to an O-ring Sizing Chart http://www.marcorubber.com/sizingchart-oring-usa.htm and find a seal with those dimensions. For instance, you measure the stem and it's 0.244 inches. X .98 = 0.239 Find the o-ring on the chart with that i.d. (or slightly smaller) and you'll see a -010 is the correct size. As cheap as o-rings are, buy the next size larger and smaller and you should be all set. Alternatively, take the parts to the hardware store, find the correct size then order a Viton or EPDM seal.
 
Hey guys, thanks for uncovering those threads-to be sure they will be of use. However, my question is about how to make the links found in old threads work. For instance, in Pete's second line above
  • Aug 2011: https://www.scubaboard.com/community/posts/5395189/ takes you to a thread containing an old link that produces the 404 So again, my question is how to convert a "bad" link into a usable one. Howard may very well have answered it, but he'll have to talk slower.
 
Is this the right text?

Yes, that is the text. I was trying to find the original post where I wrote that when I ran across the 404 problem. That is not the only link that doesn't work so that is the reason for this thread.
 
Code:
http://www.scubaboard.com/forums/5256286-post11.html

The Post ID is 5256286

Code:
https://www.scubaboard.com/community/posts/5256286

Yields https://www.scubaboard.com/community/posts/5256286

so it's

Code:
https://www.scubaboard.com/community/posts/%POST_ID%

With your post on this non-standard format, it doesn't conform to the old naming convention, and therefore the rewrite rules can't automatically rewrite this type of URL. I may be able to write a script to accommodate this type of URL if it's possible.
 
Last edited:
Thank you sir!
 
So I can use that format to look up old posts?

I've run into this issue a few times as well.
 
I made a change to the rewrite rules, and this should have remedied the situation. Your original link works now.
 

Back
Top Bottom