[wp-hackers] So, this whole .htaccess thing...

Charles lists06 at wiltgen.net
Sun Aug 27 01:38:40 GMT 2006

Chris wrote: > So the solution you're really after is wordpress .NET...

No.  To summarize again, this thread is about one idea for improving
WordPress -- specifically, reducing its dependence on an easy-to-muck-up
file meant for server configuration rather than application configuration.

Roger wrote: > WP does not need rewriting to do its permalinks.

I understand, and that's great.  But are you also saying that everything
else below historical cruft that I can delete?  (Note that I /had/ to fix
the following in order for WordPress to work in a directory other than

	# WordPress URL redirects

	RewriteEngine On
	RewriteBase /
	RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$
/wp/wp-feed.php?category_name=$1&feed=$2 [QSA]
	RewriteRule ^archives/category/?(.*) /index.php?category_name=$1
	RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$
/wp/wp-feed.php?author_name=$1&feed=$2 [QSA]
	RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
/wordpress/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
/wordpress/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
	RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$
/wp/wp-feed.php?feed=$1&withcomments=1 [QSA]

James wrote: > As far as putting a "router" in the mix, why?

A router just takes a URI and parses it to understand how to respond.
WordPress already has one if it's handling customized permalink structures
without a dependence on .htaccess.

-- Charles

More information about the wp-hackers mailing list