FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Human-friendly/readable URLs (It's 2011)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Human-friendly/readable URLs [message #165460 is a reply to message #165428] Mon, 20 June 2011 03:18 Go to previous messageGo to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
Senior Member
I have solved this issue by using the PATH_INFO style URLs and then just appending the thread title to the URL, just like Slashdot has sovled it (To decrease database lookups, contrary to how reddit has solved it)

So a URL to a thread on my forum looks like this:
http://www.ginnunga.org/forums/t/25347/installed-windows-7-on-an-ssd-/

You can of course go directly to the page like this:
http://www.ginnunga.org/forums/t/25347/

since the final part of the URL doesn't matter, but google etc does not know that, so it works just fine.


How to solve it coding wise is to adjust a few of the rewrites in users.inc.t to understand that the final part of the URL are useless and then just have a function grab the thread/msg title, replace harmful stuff, and then append it to the link with the returned result.


[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Enhanced smilies management
Next Topic: Auto Keywords
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 06:46:25 GMT 2024

Total time taken to generate the page: 0.04356 seconds