# BEGIN WordPress RewriteEngine On RewriteBase / # Basic tag requests: "tag/TAGNAME" => "index.php?tag=TAGNAME" RewriteRule ^tag/([^/]*)/?$ /index.php?tag=$1 [last] # Multipage requests: "tag/TAGNAME/page/N" => "index.php?tag=TAGNAME&paged=N" RewriteRule ^tag/([^/]*)/page/?(.*)/?$ /index.php?tag=$1&paged=$2 [last] # Tag feeds: "tag/TAGNAME/rss" => "wp-rss.php?tag=TAGNAME" # "tag/TAGNAME/atom" => "wp-atom.php?tag=TAGNAME" RewriteRule ^tag/([^/]*)/(feed|rdf|rss|rss2|atom)/?$ /wp-$2.php?tag=$1 [last] # Finally, if neither file (!-f) nor directory (!-d) exist, rewrite to # index.php so WordPress can internally rewrite. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [last,qsappend] # END WordPress