Quote:
|
Originally Posted by Equinox
uhm ok... whatever man. just tried to be constructive.
|
Constructive is good. I'm all about constructive. Maybe I missed the constructive part of your offering:
Quote:
|
more hot air than came out of my ass two days ago when i had food poisoning
|
But perhaps it's a culture difference.
Now, to answer your question. Here's is what a typical, seasoned .htaccess file looks like inside:
RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
RewriteRule ^comments/page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /index.php?s=$1&paged=$2 [QSA,L]
RewriteRule ^search/(.+)/?$ /index.php?s=$1 [QSA,L]
RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
RewriteRule ^category/(.+)/?$ /index.php?category_name=$1 [QSA,L]
RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
RewriteRule ^author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]
Basically, what is happening is every time you make change that redefines the ways a file or group of files is callable by a browser client, the program establishes those new rules in the htacess and supersedes prior rules. You may have links out there, however that are calling a file by an old name under an old category. WP needs to remember that, and offer the file when called by that name. That's how they get fat.
This is one of the most miraculous thinhs about PHP-based template-generated web sites -- It used to be that files were REAL things, whith a physical location and "physcial" proprties. The concept of the "file" as we knew it is gone. A URI is a unique identifier that calls a certain set of templates, passess them through a particulat CSS and produces X on the browser. This is nothing less than a paradigm shift that very few people are properly appreciating.
2hp