Permalinks not converting spaces to dashes, nor removing special characters
-
I have an odd problem with a site that I launched last week, though the problem only appeared yesterday. When creating a new post or page, the permalink – which is set to postname – does not convert the spaces in the titles to dashes, nor does it make everything lowercase, nor does it remove the non-alphanumeric characters. It simply takes the full post title and tries to use it as the permalink regardless of which unusable characters it has.
This problem occurred some time while I was working on the site, installing and updating some plugins. I checked the .htaccess file and the settings look correct. I also tried replacing it with a new .htaccess file. I tried disabling the plugins that I thought might effect the permalink settings (Yoast SEO was one culprit), but that didn’t fix things.
After trying many things, I moved the site to my localhost to test it locally. Here the problem disappears. Yet I have several WordPress sites (4) running on the same server with the same virtualhost directive settings, and none of them have this problem (so I’m fairly certain the problem isn’t that mod_rewrite doesn’t work).
This problem is somewhat mitigated by the fact that you can manually override the permalink when a post is created, but it’s still far from ideal.
FWIW, this server runs Ubuntu 12.04, PHP 5.3.10, Apache 2.2.22
- The topic ‘Permalinks not converting spaces to dashes, nor removing special characters’ is closed to new replies.