|
|
|
|
|
|
|
Re: Human-friendly/readable URLs [message #165950 is a reply to message #165460] |
Thu, 01 September 2011 15:09  |
 |
Anik
Messages: 36 Registered: August 2011 Location: India
Karma: 0
|
Member |
add to buddy list ignore all messages by this user
|
|
Ernesto wrote on Mon, 20 June 2011 08:48I 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.
Hi there,..will you tell us the procedure,,
Regards,..
|
|
|