Trailing slash disappears when redirecting


(Ellis Taylor) #1

Hi all,

 

I've been migrating an old site from WordPress into Matrix and have had a bit of fun with the remap manager.

 

In WordPress, a URL always finishes with a '/'. E.g. http://www.asite.com/subdir/. However, a feature of the remap manager is that it will always remove a trailing '/' even in the original URL to be remapped. So if I want to remap...

 

 

Matrix will automatically change it to -

 

http://www.asite.com/subdir   to   http://www.asite.com/subdir

 

Notice the removal of the trailing slash in the original URL. This means I effectively cannot create proper 301s for my site in Matrix.

 

 

Anyone had this issue before or have I missed a trick. Let me know if you need anymore info.

 

 

Many thanks in advance.

Ellis

 


(Ellis Taylor) #2

Hi all,

 

I've been migrating an old site from WordPress into Matrix and have had a bit of fun with the remap manager.

 

In WordPress, a URL always finishes with a '/'. E.g. http://www.asite.com/subdir/. However, a feature of the remap manager is that it will always remove a trailing '/' even in the original URL to be remapped. So if I want to remap...

 

 

 

Matrix will automatically change it to -

 

http://www.asite.com/subdir   to   http://www.asite.com/subdir

 

Notice the removal of the trailing slash in the original URL. This means I effectively cannot create proper 301s for my site in Matrix.

 

 

Anyone had this issue before or have I missed a trick. Let me know if you need anymore info.

 

 

Many thanks in advance.

Ellis

 

 

 

Looks like some server level redirects for now


(Joel Porgand) #3

 

 

Looks like some server level redirects for now

 

there is an option in the system configuration page "Redirect URL with Trailing Slash" - I think it's set to yes by default - could this be causing your problem?


(Ellis Taylor) #4

Hi JP,

 

Thanks for that. I'd noticed that before... and its a very good point. I mean, ideally I would have the trailing slash removed, but in a way that the old page redirects to the new page passing on the page authority.

 

At the moment I have it set to No so at least the old trailing slash pages can be accessed, however, the sitemap and the navigation goes to the non trailing slash version.

 

 

Cheers,

Ellis