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.
I want to redirect all queries having member.php and showthread.php to discourse home page.
How can I do so?
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
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
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 for defining where the url should redirect to. Set o…
With a little bit if Ruby code and some regex magic you could even redirect to the imported topics, posts and users…
@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:
Redirecting 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
Generate Nginx map file
To set up categories and topics redirec…