Upgrading broke my numerical URL
-
Since upgrading WP to v2.5 (and then v2.5.1), one of my links has been permanently broken. The directory in question is named /1001, and is the only purely numerical URL on my site. It is also the only one to have been affected by the upgrade.
I initially thought that the directory must have been corrupted in some way, but I am able to edit the page in WordPress and even rename it. Renaming the file solves the problem, but as this page is my most linked-to page on my site many people are still reaching my 404 page via the old URL.
Setting up a URL redirect was unsuccessful, as something within WordPress is intercepting it.
Can anybody shed some light on what’s going on here? I’ve written a bit more about this problem over here.
NOTE: I have renamed this page to /101 until this issue is resolved. The main menu links have been updated to reflect this change.
The first sign that something was wrong was when my 101 Things in 1001 Days page led me to a 404. None of the other pages were broken, so I assumed that something was screwy in my database. Strangely, I could edit the page without any problems from the WordPress Dashboard, so I knew the page itself wasn’t damaged.
Further experimentation has led me to believe that this version of WordPress cannot handle numerical URLs properly. Here’s the URL of my 1001 Days page:
https://www.scarletwords.com/1001/
I experimented with a couple of other pages, changing their “page slug” to numerals. Here’s what happened:
https://www.scarletwords.com/elizabeth/harry/
This URL performs well.https://www.scarletwords.com/elizabeth/123/
Changing the previous page slug from “harry” to “123″ confused it into displaying /elizabethAs far as bugs go, it could be more serious. However, I’m in a situation where /1001 happens to be the most linked-to URL on my website, and changing it would be fairly damaging as far as traffic is concerned.
Workarounds include setting up redirects and updating all my internal links (which is a big job, as I link to it often in posts), but I imagine that this is beyond the scope of some of the more popular blogs. I’ve decided to live with the 404 error for the next day or so while I try to investigate a real solution.
It should be noted that URLs with number and letter combinations work fine, such as my 100facts page.
- The topic ‘Upgrading broke my numerical URL’ is closed to new replies.