Forum Moderators: phranque
RewriteCond %{HTTP_HOST} ^www.mydomain.de [NC]
RewriteRule ^de/ger/([^/]*)\.htm¦html$ index.php?pagename=$1&domainid=3 [L]
should match (i.e. I think it should match)
de/ger/index.htm and
de/ger/index.html
what it does match is
de/ger/index.htm (good)
de/ger/index.htmwhydoesntthisrespectmyeoldollar (?)
doesn't the $ sign mean the rule should stop here?
RewriteRule ^de/ger/([^/]*)\.(htm¦html)$ index.php?pagename=$1&domainid=3 [L]
or:
RewriteRule ^de/ger/([^/]*)\.html?$ index.php?pagename=$1&domainid=3 [L]
;)
RewriteRule ^de/ger/([^.]+)\.html?$ index.php?pagename=$1&domainid=3 [L]
^abc = begins with abc
xyz$ = ends with xyz
^lmn$ = is exactly equal to lmn
^a.+z$ = starts with a, ends with z, and has at least one character between a and z.
See the short regex tutorial cited in our forum charter for more information on regular expressions.
Jim