Wordpress trailing slash
Tips, tricks & tools
If you’ve recently updated your Wordpress site, you might have noticed that there’s a trailing slash missing from your page urls. Pages are now domain.com/page instead of domain.com/page/. The folks at Wordpress don’t seem to think this is a very big deal, but for anyone with even the slightest interest in SEO and duplicate content - then you’ll be tearing your hair out trying to fix it (at least I was). I messed around with the Wordpress link-template.php file, and fixed the problem, but also created a new one while I was at it. Just as I was about to give in and learn to live without my beloved trailing slash, I found a simple plugin from Peter Claus Lamprecht that totally fixes the problem. Unless you can read German, you’ll never find the plugin on his site - but if you click here, then it’s all your. Thanks Peter!







March 14th, 2008 at 11:23 pm
Thanks for this, I tried 2.3.3 a while ago and it screwed up my urls so I rolled back to earlier version.
March 19th, 2008 at 7:48 pm
Thanks for linking to my plugin.
The existence of the trailing slash depends on the last char of your permalink structure: if the last char is a slash, then all your permalinks will have a trailing slash. Otherwise not. So the missing slash problem only occures, when filename extensions like .html are used.
My plugin solves this dilemma.
May 15th, 2008 at 10:11 pm
Very great, this plugin just saved some nerves.
May 26th, 2008 at 11:31 pm
Thank you! This was driving me crazy trying to sort this out. I don’t know why the folks at Wordpress decided to change this. THANKS!
August 4th, 2008 at 8:39 am
Hi people.
It is really good wordpress only thing i don’t like is cause this remove .php extension from end of my urls.
How to remove this part of functionality of that plugin.
(i need only to remove those slashes)
Thanks