Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-03-01 13:48:28

lindabb
Member
Registered: 2023-02-17
Posts: 132

url last slash

Hello,
First, sorry for asking many questions!

on my local host (dev version 4.8.9), and in admin ->Site trailing slash select no .
when I go to
http://localhost/textpattern/ with or without http://localhost/textpattern/ works
but when select any section like this
http://localhost/textpattern/contact works
but doesn’t work when I include last slash
http://localhost/textpattern/contact/

I think the last slash should be ignored when no anything after it, without reporting error
any idea how to fix this ?

Thank you

Offline

#2 2023-03-01 21:47:48

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

Re: url last slash

Formally, localhost/textpattern/contact and localhost/textpattern/contact/ are different URLs. Some SEO-versed people say accepting both forms could result in content duplication. If you don’t care, .htaccess or similar redirection should work.

Offline

#3 2023-03-01 22:27:38

lindabb
Member
Registered: 2023-02-17
Posts: 132

Re: url last slash

Good point, that makes sense for SEO

Thank you

Offline

Board footer

Powered by FluxBB