I have moved to discourse (hosted on DigitalOcean) from vbulletin forum long back, however Google Search Console shows thousands of broken links of the following formats.
member.php?xxxx-xxxx
showthread.php?xxxx-xxxx/xxxx
I want to redirect all queries having member.php and showthread.php to discourse home page.
How can I do so?
pfaffman
(Jay Pfaffman)
May 13, 2016, 3:21pm
2
Are those links in forum posts or are they just stale and the next time Google crawls your site they’ll go away?
If it’s the former, you could do a global replace in the database. If it’s the latter, you can wait, or add some redirects to the nginx config.
They are stale, I thought same. But its almost an year and still I see 50k broken links and increasing daily. Actually Google crawler comes to those links from external websites.
I want to redirect
example.com/member.php?anything-after-this
example.com/showthread.php?anything-after-this
example.com/tags.php?anything-after-this
to example.com
Please help me adding these redirect so that any link containing these files redirects to main page.
I am guessing that they are all hitting your page not found error if so why not change the text of the page to something more fitting making them aware its an old link and recommending they link back to the forum.
Customize / Text Content / page_not_found.title
gerhard
(Gerhard Schlager)
May 14, 2016, 9:22am
6
Redirecting Old Forum URLs to New Discourse URLs
If you’ve moved from other forum software to Discourse using one of our import scripts , then you probably want all your hard-earned Google search results to continue pointing to the same content. Discourse has a built-in way to handle this for you as an alternative to writing nginx rules, using the permalinks lookup table.
The permalinks table allows you to set two things: a url to match, and what that url should show. There are a few options …
With a little bit if Ruby code and some regex magic you could even redirect to the imported topics, posts and users…
4 Likes
techAPJ
(Arpit Jalan)
July 16, 2016, 6:26pm
7
@anandm09 I think this is the howto you are looking for:
Migrating from vBulletin to Discourse and want to redirect old vBulletin URLs to new Discourse URLs? Read on!
If the base URL of your old forum and new forum is same, you should follow this howto instead:
Redirect old forum URLs to new Discourse URLs
In this howto we’ll assume:
vBulletin base URL: www.example.com/forum
Discourse base URL: forum.example.com
Nginx server for www.example.com
Let’s begin!
Generate Nginx map file
To set up categories and topics redirect w…
2 Likes