Comment on 301 Redirect Htaccess by Jonas Jørgensen.

301 Redirect Htaccess HI , thanks for the great explanation.

The file is very useful.

Though, I have a minor problem.

When I interst both a www redirect and a few 301 page redirects, the server returns a 500 not working bla lba issues bla bla

My code:

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
# redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
Rewrite 301 /hablahabla/ld.html http://www.domain2.com/example.html
ErrorDocument 404 /sideoversigt_mobil_bredbaand.htm

Can u see whats seems to be wrong?

Without the Rewrite 301 it works fine.