Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-02-14 19:00:17

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: htaccess sitewide - redirect 301

Almost, Yiannis, almost there.
It’s not picking this one:
http://www.neme.org/main
Don’t let that one escape, even if it’s just for relieving some OCD

So, for some reason, the ? is not picking up the optional trailing slash…
Could you try?

RedirectMatch 301 ^/main(.+)$ http://www.neme.org$1

Or better, let’s try escaping that trailing slash…

RedirectMatch 301 ^/main\/?(.+)$ http://www.neme.org/$1

And if that doesn’t work, lets try:

RedirectMatch 301 ^/main/?(.+)?$ http://www.neme.org/$1

(hopefully, none of this would break the stuff achieved till now)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#14 2011-02-15 06:03:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

Re: htaccess sitewide - redirect 301

Hi Julián.

!!!! very impressed !!!!

I think that

RedirectMatch 301 ^/main/?(.+)?$ http://www.neme.org/$1

does it all.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB