views:

18

answers:

1

RewriteRule ^/tag/term$ /tag/term-expanded-here [R]

A: 

If you’re using mod_rewrite in a .htaccess file, you need to remove the path prefix from the pattern:

When using the rewrite engine in .htaccess files the per-directory prefix (which always is the same for a specific directory) is automatically removed for the pattern matching and automatically added after the substitution has been done.

In case of the .htaccess file in the document root directory it’s the leading /:

RewriteRule ^tag/term$ /tag/term-expanded-here [R]
Gumbo
Doesn't seem to work. The request I'm trying to match is ^tag/term$ and rewrite it as /tag/term-expanded-here
Matt Helmick