url rewrite with .htaccess not working

Hi I have an URL like:

http://www.mysite.nl/vakantiehuizen/Denemarken/Bornholm

I want to rewrite it for SEO purposes:

http://www.mysite.nl/vakantiehuizen/denemarken/bornholm

I have tried all possible methods like:

RewriteMap lc int:tolower    
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

but fails every time and gives 500 internal server error...

Upvotes: 1

Views: 63

Answers (1)

Jon Lin
Jon Lin

Reputation: 143856

You can't declare a RewriteMap inside of an htaccess file. It can only be declared in vhost or server config. The other two lines you can use in an htaccess file.

Upvotes: 2

Related Questions