MyBB Community Forums

Full Version: Google SEO plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I am using Google SEO plugin on my forum and have enabled Google SEO UR to get descriptive URLs instead of random numeric IDs.

however, I have noticed variance in URLs generated. For example one URL is :

https://lawforall.in/ipforum/Thread-Sect...Parliament

while another is :

https://lawforall.in/ipforum/Thread-Sect...241#pid241

Why is '?pid=241#pid241' appearing in the second URL and how can I stop that ?

All inputs appreciated, thanks.
'?pid=241#pid241' is telling the script what post to display. What is after "?" in general is telling the script what else to do instead of just landing at top of the first page.

You could try to hide these but I wont bother. And search engines can read them afaik.
(2018-12-04, 08:19 PM)Omar G. Wrote: [ -> ]'?pid=241#pid241' is telling the script what post to display. What is after "?" in general is telling the script what else to do instead of just landing at top of the first page.

You could try to hide these but I wont bother. And search engines can read them afaik.

Thank you for the explanation. But why are some links having this stuff and others don't ? And if I want to share any link on another website should I be sharing the complete link ?

For easy 'human' reading and sharing, I would prefer the links to be without such quirky stuff. Any way to do that ? And what are the pros and cons of doing it ?
The ones that doesn't have such content appended are links that land to the first/former/principal page. Links that contain such content appended are links that perform certain actions upon landing (take you to the correct page, exact post, etc).

Early I said I won't bother, but thinking a little more I don't think it is even feasible to do.

Also, as far as I'm concerned search engines algorithms don't take this as seriously as before because they can analyze content better.

If you want to share just remove what is after "?" (even "?" it self if you want), just take as example the following links pointing to this thread and you will understand its purpose.
https://community.mybb.com/thread-220942.html
https://community.mybb.com/thread-220942-post-1319962.html#pid1319962
https://community.mybb.com/thread-220942-lastpost.html

Google SEO styles them quite nicer but the reasoning stays the same.
https://lawforall.in/ipforum/Thread-Section-160-Rules-to-be-placed-before-Parliament
https://lawforall.in/ipforum/Thread-Section-160-Rules-to-be-placed-before-Parliament?pid=242#pid242
https://lawforall.in/ipforum/Thread-Section-160-Rules-to-be-placed-before-Parliament?action=lastpost

You can share any of these links and each one will do a different action. Share the first one if you simply want to share the thread page.
(2018-12-04, 05:33 PM)Learning Wrote: [ -> ]Why is '?pid=241#pid241' appearing in the second URL and how can I stop that?

Those are direct links to posts ( the ones you find when you click the #postno in the upper right corner of every post, e.g. #5 links to  thread-220942-post-1319991.html#pid1319991 which is this post )

You can also consider them permalinks to a specific bit of content.

MyBB has dynamic pagination, so User A might see 10 posts per page, User B 20 posts per page, User C 50 posts per page. (You can set this in the User CP). So you can not simply link to Page 3 of a thread, as it would mean very different things for different people.

Thus arises the need for a way to link a post directly, no matter which page it may appear on.

Even if the pagination was static, sometimes posts are deleted, causing all following posts to move up by one, and some posts to change the page they appear on. So a link to page 3 of a thread would again, no longer show the post that was linked to.

Sometimes moderators split threads up and move posts around into other threads. Again, a link to an old thread would no longer show the post that was linked to.

So MyBB gives you direct links to posts. Even with Google SEO, these links do contain the post ID, and even contain it twice: ?pid=123 to tell MyBB which thread and page to display, and #pid123 to tell the browser to actually scroll down to the actual post within that page.

It's a feature. If you remove it you will lose the ability to create a permanent link to a specific post.

It is reasonably safe to remove it if it's the first post in a thread though.
Thanks much @omar G and @frostschutz for taking th etime and efforts to explain. Partly understood - mainly that I should not worry too much about it :-)

Will read up in more dteail above explanations. Thanks again !