# Redirecting vbulletin urls to discourse

**URL:** https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116
**Category:** Support
**Created:** [Maio 12, 2016, 1:11pm UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116 "2016-05-12T13:11:34Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![anandm09](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anandm09](https://meta.discourse.org/u/anandm09)
#### Post date: [Maio 12, 2016, 1:11pm UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/1 "2016-05-12T13:11:34Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Maio 13, 2016, 3:21pm UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/2 "2016-05-13T15:21:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![anandm09](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anandm09](https://meta.discourse.org/u/anandm09)
#### Post date: [Maio 13, 2016, 3:43pm UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/3 "2016-05-13T15:43:44Z")

</div>

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](http://example.com/member.php?anything-after-this)  
[example.com/showthread.php?anything-after-this](http://example.com/showthread.php?anything-after-this)  
[example.com/tags.php?anything-after-this](http://example.com/tags.php?anything-after-this)

to [example.com](http://example.com)

Please help me adding these redirect so that any link containing these files redirects to main page.

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [Maio 13, 2016, 4:12pm UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/4 "2016-05-13T16:12:28Z")

</div>

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

---

<div class="post-metadata">

### Author: ![anandm09](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anandm09](https://meta.discourse.org/u/anandm09)
#### Post date: [Maio 14, 2016, 7:26am UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/5 "2016-05-14T07:26:25Z")

</div>

Thanks all of you but

I want to redirect

[example.com/member.php?anything-after-this](http://example.com/member.php?anything-after-this)  
[example.com/showthread.php?anything-after-this](http://example.com/showthread.php?anything-after-this)  
[example.com/tags.php?anything-after-this](http://example.com/tags.php?anything-after-this)

to [example.com](http://example.com)

Can anyone help setting up this redirect in discourse hosted on digitalocean.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [Maio 14, 2016, 9:22am UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/6 "2016-05-14T09:22:27Z")

</div>

> [@Redirect old forum URLs to new Discourse URLs using permalinks](https://meta.discourse.org/t/redirecting-old-forum-urls-to-new-discourse-urls/20930):
>
> Redirecting Old Forum URLs to New Discourse URLs using permalinks If you’ve moved from other forum software to Discourse using [one of our import scripts](https://github.com/discourse/discourse/tree/main/script/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 a…

With a little bit if Ruby code and some regex magic you could even redirect to the imported topics, posts and users…

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Julho 16, 2016, 6:26pm UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/7 "2016-07-16T18:26:39Z")

</div>

@anandm09 I think this is the howto you are looking for:

> [@Redirect vBulletin URLs to Discourse URLs](https://meta.discourse.org/t/redirect-vbulletin-urls-to-discourse-urls/47394):
>
> Migrating from vBulletin to Discourse and want to redirect old vBulletin URLs to new Discourse URLs? Read on! bell 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 using permalinks](https://meta.discourse.org/t/redirecting-old-forum-urls-to-new-discourse-urls/20930) 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 …

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Fevereiro 13, 2019, 1:44am UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/8 "2019-02-13T01:44:29Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Março 5, 2022, 8:06am UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/9 "2022-03-05T08:06:07Z")

</div>



---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Março 5, 2022, 11:04am UTC](https://meta.discourse.org/t/redirecting-vbulletin-urls-to-discourse/44116/10 "2022-03-05T11:04:46Z")

</div>


