PDA

View Full Version : removing duplicate post number in url


Lpspider
04-30-2012, 04:20 AM
How might someone go about changing the default urls, like this:

http://www.website.org/showthread.php?t=51715&p=898556#post898556

to urls like this:

http://www.website.org/showthread.php?t=51715#post898556

The second post listing seems redundant and not seo friendly. I've been doing some research and searching but haven't come across anything useful.

kh99
04-30-2012, 12:03 PM
I don't know anything about seo, but I just thought I'd point out that one of them is the post to display and the other is an anchor to scroll to, which doesn't seem like something a search engine would be interested in. But I suppose you could either change the vb code to use something other than the post id as the anchor name, or else maybe you could have code that scrolls to the post if there's a "&p=" in the url.

cellarius
04-30-2012, 12:16 PM
This seems to be a classic case of supposed SEO benefit against real benefit for the user. The anchor takes the user directly to the post he wants to see in the browser. Take it away, and the user will have to scroll, or you'll have to implement some fancy javascript that takes over the job, if postid is present. Search engines don't care for anchors in URLs, they're not that stupid anymore.