rewrite after pretty url rewrite
Permalink
Hey Guys,
I would like to redirect only one page depend on browser language and I use this rewrite rules after pretty URL rewriting.
RewriteCond %{HTTP:Accept-Language} (en) [NC]
RewriteRule ^about/(.*)$ about/en/$1 [R=301,L]
But it don't work and i don't know why. Can anyone help me?
Thanks for help
Daniel
I would like to redirect only one page depend on browser language and I use this rewrite rules after pretty URL rewriting.
RewriteCond %{HTTP:Accept-Language} (en) [NC]
RewriteRule ^about/(.*)$ about/en/$1 [R=301,L]
But it don't work and i don't know why. Can anyone help me?
Thanks for help
Daniel
This works for me
put it after RewriteBase in the Pretty Print Sektion.
<code>
RewriteCond %{HTTP:Accept-Language} (en) [NC]
RewriteCond %{REQUEST_FILENAME} about
RewriteRule ^about/ /en/ [PT]
</code>
Bye Daniel