WordPress and the annoying rewrite rules
My new design, just off the corner, relies heavily on some severe mod_rewriting. So, you can imagine my surprise, when, after upgradin to WP 2.0, I found a .htaccess file that wouldn’t take custom rewrites, thanks to WordPress’ internal rewriting.
After trawling through the forums, I found it littered with requests for custom mod_rewriting rules, yet, very little info. It seems that WordPress generates the following rewrite rule when editing .htaccess and adds values via it’s internal files and the database!
As you can see, it's not possible to simply edit this file. As of writing this post, I still haven't been able to edit the rules. If anyone knows how to do it, kindly, do help.
I will post an update if and when I get a hack/solution.
March 20th, 2006 at 7:15 pm
[...] Indranil has dug up some info on how to revert to the rewrite system used in WordPress before 2.0. This might be useful if you, like me, want a bit more control over what exactly is going on behind the scenes. Too bad it requires you to edit core files instead of it being an option. [...]
August 11th, 2006 at 11:14 am
[...] Nach einiger Verwirrung um die abgespeckte htaccess-Datei die es seit Version 2.0 von Wordpress gibt (PHP regelt inzwischen die Rewrites anstelle des für diesen Zweck konzipierten Apache-Moduls mod_rewrite), ist das Thema von der Tagesordnung der einschlägigen Foren verschwunden. Ich befürchte nur, dass man den Umstand hingenommen hat, dabei ist es so einfach: auch Wordpress 2.x kann durch händisches Ändern einer einzigen Zeile dazu bewegt werden die Rewrites für kanonische URLs in einer herkömmlichen htaccess-Datei abzulegen. Das ist schneller und gibt einem die Kontrolle zurück, die man u.U. gern hätte: Wordpress Rewrites von mod_rewrite anstelle PHP regeln. So wie es im guten alten WP 1.5x war
[...]
October 23rd, 2008 at 2:50 pm
wordpress templates…
My blog is running on WP too. I really like this… updates keep the system secure, free themes give lots of nice designs and the look and feel of WP is just great! I love it!…