RewriteRule ^/tag/term$ /tag/term-expanded-here [R]
views:
18answers:
1
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
2010-09-23 18:10:13
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
2010-09-25 15:58:37