[Techtalk] weird wordpress error: 404 on % in permalinks
carla at bratgrrl.com
Fri Oct 19 23:30:08 UTC 2012
This is a virtual host on a system with 170+ virtual hosts. Yeahno fun.
The includes drive me insane.
grep include /etc/httpd/conf/httpd.conf
LoadModule include_module modules/mod_include.so
# Possible values include: debug, info, notice, warn, error, crit,
# "combinedio" includes actual counts of actual bytes received (%I) and
sent (%O); this # Set to "EMail" to also include a mailto: link to the
ServerAdmin. # Note that if you include a trailing / on fakename then
the server will # We include the /icons/ alias for FancyIndexed
directory listings. If you # and not include in the listing.
Shell-style wildcarding is permitted. # For files that include their
own HTTP headers: # To parse .shtml files for server-side includes
(SSI): # includes to substitute the appropriate text.
# Alias /error/include/ "/your/include/path/"
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
# a directory that does not include the trailing slash. This fixes a
grep rewrite /etc/httpd/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
On Fri, 19 Oct 2012 14:42:09 -0700
Lisa Kachold <lisakachold at obnosis.com> wrote:
> Version of wordpress
> .htaccess file
> Grep rewrite httpd.conf
> Grep include httpd.conf
> http://blog.doncho.net/?p=462 and the thread is here:
> http://wordpress.com/forums/topic.php? id=2076&replies=21
> On 19 Oct 2012 13:44, "Carla Schroder" <carla at bratgrrl.com> wrote:
> > hey all,
> > A friend is having a strange issue with Wordpress permalinks, and I
> > am baffled. In the admin panel he wants to use something like this
> > for permalinks: /%year%/%month%/%postname% Plain old ordinary
> > stuff, right? But this always creates 404 error. This always
> > happens with a percent sign followed by a non-whitespace.
> > I thought it was mod_rewrite not enabled, but he says:
> > "I'm not sure this error is related to mod_rewrite. The fact that
> > this error pops up when I submit POST data that contains a percent
> > sign ("%") followed by non-whitespace leads me to believe that the
> > webserver is interpreting that portion of the POST data as a
> > Unicode entity. Sooo... I did a little experiment:
> > 1. On the WordPress admin permalinks page, I tried submitting
> > one of the standard, predefined permalink patterns. I got a 400 BAD
> > REQUEST error like I did last Monday.
> > 2. I tried submitting a permalink pattern that is only this text:
> > "%20" (minus the quotes.) %20 is a Unicode entity that signifies
> > a space. This was submitted successfully *without error*.
> > 3. I tried submitting only this text: "%y". That would be an
> > invalid Unicode entity. Submitting it produced the 400 BAD REQUEST
> > error.
> > To be sure, the same error also pops up when I submit forms in the
> > theme admin page, which is totally separate from the permalinks
> > page.
> > So, it looks like the webserver is interpreting the body of the POST
> > data for entities, which it isn't supposed to do."
> > Thoughts? It's Apache with the usual LAMP accessories on CentOS 6.3.
> > best,
> > Carla
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Carla Schroder
> > ace Linux nerd
> > buy my books! Book of Audacity,
> > Linux Networking Cookbook,
> > Linux Cookbook
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > _______________________________________________
> > Techtalk mailing list
> > Techtalk at linuxchix.org
> > http://mailman.linuxchix.org/mailman/listinfo/techtalk
> Techtalk mailing list
> Techtalk at linuxchix.org
ace Linux nerd
buy my books! Book of Audacity,
Linux Networking Cookbook,
More information about the Techtalk