| Help with .htaccess [message #1856] |
Thu, 27 May 2010 13:45  |
Buzz Messages: 1 Registered: May 2010 |
|
|
|
Hi,
I am a newcomer on programming .htaccess, I am now trying to redirect: http://www.website.nl/index.html to http://www.website.nl
My current .htaccess file is:
RewriteEngine on
RewriteRule ^(.*)/(.*)\.html$ index.php?param1=$1¶m2=$2 [NC]
RewriteCond %{HTTP_HOST} ^website.nl$
RewriteRule ^/?$ "http\:\/\/www\.website\.nl" [R=301,L]
RewriteCond %{HTTP_HOST} ^website.nl$
RewriteRule ^index\.html$ "http\:\/\/www\.website\.nl" [R=301,L]
if I add this to the code:
RewriteCond %{HTTP_HOST} ^www.website.nl$
RewriteRule ^index\.html$ "http\:\/\/www\.website\.nl" [R=301,L]
I get an error message on my website saying that it het's stuck in a loop. What I am doing wrong?
Many thanks for your help!
|
|
|
|