# Problem with permalinks after migration

**URL:** <https://meta.discourse.org/t/problem-with-permalinks-after-migration/176280>\
**Category:** Migration\
**Created:** [January 16, 2021, 1:32pm UTC](https://meta.discourse.org/t/problem-with-permalinks-after-migration/176280 "2021-01-16T13:32:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Göks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/g%C3%B6ks/32/206285_2.png) [@Göks](https://meta.discourse.org/u/G%C3%B6ks)\
**Post date:** [January 16, 2021, 1:32pm UTC](https://meta.discourse.org/t/problem-with-permalinks-after-migration/176280/1 "2021-01-16T13:32:23Z")

</div>

Hi there,

I managed to successfully migrate a legacy self written forum software to discourse.  
After the 24h import of the 2M records everything works like a charm except the permalinks.

I have about 350.000 permalinks in the permalinks database table of discourse. They are all in lowercase eg. “forum/t140842-s1/8p-hilfe-bei-1-8-tfsi-guter-motor-oder-schlechter-motor.html”

Unfortunately Google links to “/forum/t140842/8P-Hilfe-bei-1-8-tfsi-guter-Motor-oder-schlechter-Motor/” and I get a 404. ☹

Any hints how I can lowercase the request URL before looking it up on the permalinks table without breaking any other stuff? Shouldn’t this kind of conversion before lookup not standard?

Thank your for the great software!

Göks

---

_[View the full topic](https://meta.discourse.org/t/problem-with-permalinks-after-migration/176280)._
