Can You Have Quotation Marks and Apostrophes (Single Quotes) in Your Permalink URL?

Can quotation marks (double quotes and single quotes) and apostrophes be included in your WordPress permalink URLs? I am not an authority on this, but I found a case recently where an apostrophe from a post title was being included in the permalink and it was causing the permalink to produce a “Page Not Found” 404 error. Removing the apostrophe from the permalink fixed the problem.

By the way, if you are looking for a solution to the problem of multiplying apostrophes and quotes in your WordPress posts, click here: How to Fix WordPress Multiple Apostrophe.

The example looked something like this. This is not the actual URL and title, but it did include “Montezuma’s Revenge”. Maybe that’s what the server found offensive! 😉’s-revenge-blah-blah/

The title of the post was “Blah Blah Montezuma’s Revenge Blah Blah” (without the double quotes).

As you probably know, you can put apostrophes and quote marks in post and page titles, but if your site is hosted on, those will be removed when WordPress creates the permalink URL. [UPDATE: No. Double quotes will not necessarily be removed, as you can see from the URL for a recent post on WordPress Security.]

The problem with an apostrophe in a URL happened on a self-hosted WordPress installation, and, as a matter of fact, it is installed on a Windows IIS server, rather than the usual Linux/Unix Apache server.

I’m not an expert at server issues, but I do know that sometimes things like this happen with WordPress only on Windows servers. For instance, when you enable permalinks on Windows, sometimes the URLs will include “index.php” – like’s-revenge-blah-blah/ when this normally never shows up in a URL.

At any rate, when I used the Permalink Edit button (under the post/page title window in the WordPress Editor) to remove the apostrophe, the problem went away. The permalink URL now looks like:

Oddly enough, I can now get to the page from both URLs

No idea why that would be, but who cares since there’s no longer a 404 error.

%d bloggers like this: