Permalinks with capital letters


(Fajfi) #1

After import from my old forum i have to deal with redirections.

I have Google SEO plugin on my MyBB board and I used this plugin table to get permalinks.

In table I got links with capital letters.

/thread-Some-Thread--01

Actual links on sitemap/forum:

/thread-some-thread--01

On redirect page i got links with capital letters and if I use actual link I get 404 not found.

Is there any solution to convert links from capital to lower?

Maybe permalink normalizations option in admin panel can help?


(Jay Pfaffman) #2

I would have the importer create links with just the ID and use permalink normalization to remove the slug.


(Fajfi) #3

Nice idea, thanks.

I converted my links in permalinks to something like this:

forum-1

Now i need to convert something like this with permalink normalizations:

forum-Aba-dasda-1

I’m trying with this but it doesn’t work.

/forum-[A-Za-z-]+([0-9]+)./forum-\1

Edit: Working version

/forum[A-Za-z-]+([0-9]+).*/forum\-\1

Now I have problem with polish letters like: ĄąĆćĘꌜŹźŻżÓó

When I tried this version:

/forum[A-Za-z\Ą\ą\Ć\ć\Ę\ę\Ś\ś\Ź\ź\Ż\ż\Ó\ó-]+([0-9]+).*/forum\-\1

it couse error on site: