Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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)
Offline
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