kerkness / kohana-for-wordpress

Plugin for running the Kohana 3.0 framework inside of Wordpress
http://kerkness.ca
26 stars 6 forks source link

Wordpress adds trailing slashes to everything. #5

Open mclin opened 14 years ago

mclin commented 14 years ago

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.

kerkness commented 14 years ago

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.