[wp-hackers] .htaccess cleanup

Jeff Minard jeff at jrm.cc
Sun May 22 18:25:06 GMT 2005


Jonathan Leighton wrote:
> Or you could combine the two...
> 
> RewriteRule ^(.+)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
> RewriteRule ^(.+)/feed/(feed|rdf|rss|rss2|atom)/?$
> /index.php?pagename=$1&feed=$2 [QSA,L]
> RewriteRule ^(.+)/(feed|rdf|rss|rss2|atom)/?$
> /index.php?pagename=$1&feed=$2 [QSA,L]
> RewriteRule ^(.+)/page/?([0-9]{1,})/?$
> /index.php?pagename=$1&paged=$2[QSA,L]
> RewriteRule ^(page1|page2|page3)/?([0-9]+)?/?$
> /index.php?pagename=$1&page=$2 [QSA,L]
> 
> Granted it's not *as* specific... but probably faster?
> 

Faster, no idea...gosh, I wouldn't even know how to test that for speed.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jeff.vcf
Type: text/x-vcard
Size: 156 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050522/8cf0a57f/jeff.vcf


More information about the wp-hackers mailing list