[wp-hackers] .htaccess cleanup
    Jonathan Leighton 
    turnip at turnipspatch.com
       
    Sun May 22 19:27:16 GMT 2005
    
    
  
Jeff Minard wrote:
> 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.
Well, I'm just assuming that saying (in code of course) "match any
character" is faster than saying "match this phrase, or that phrase, or
that phrase, or that phrase". But yeah, I wouldn't know either.
Jon
-- 
Jonathan Leighton aka. Turnip
http://turnipspatch.com/ | http://digital-proof.org/
    
    
More information about the wp-hackers
mailing list