kohana-for-wordpress icon indicating copy to clipboard operation
kohana-for-wordpress copied to clipboard

Wordpress adds trailing slashes to everything.

Open mclin opened this issue 15 years ago • 1 comments

eg 'controller/action/id' redirects to 'controller/action/id/'

Bad for SEO. Urgent when you're getting indexed :P

I hacked a solution based on this plugin. http://www.fastagent.de/res/download/smart-trailing-slash.zip

Could make a WP filter to remove it only from Kohana requests, but what if the Kohana requests wants the slash? I'm not sure how we'd differentiate.

mclin avatar Dec 11 '09 01:12 mclin

Is it an actual redirect or a rewrite ? I've noticed no adverse SEO effect at all.

Either way, Kohana won't care if their is a slash their or not if routes are constructed properly. Their would never be a good reason for a Kohana route to contain a trailing slash.

kerkness avatar Dec 11 '09 05:12 kerkness