PDA

View Full Version : htaccess file errors


Jane
09-15-2011, 01:46 PM
Hi I have previously uploaded the .htaccess file showing pages to redirect and it worked with no problems.

I have today added another page for redirection. I then uploaded it to my site. I made sure the file name just read .htaccess.

When I tested it to see if it works, it doesnt let me access any page of my website. I just get an 'internal server error'

I dont really understand where I am going wrong so if anyone can help me with this that would be great.

Below is some of what the .htaccess file reads:-

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^michael-smith-engineers.co.uk [NC]
RewriteRule ^(.*)$ http://www.michael-smith-engineers.co.uk/$1 [L,R=301]
Redirect 301 /products/high-pressure-diaphram/index.htm http://www.michael-smith-engineers.co.uk/products/high-pressure-diaphragm-pumps/index.htm
Redirect 301 /products/high-pressure-diaphram/hydra-cell-g03.htm http://www.michael-smith-engineers.co.uk/products/high-pressure-diaphragm-pumps/hydra-cell-g03.htm
Redirect 301 /products/high-pressure-diaphram/hydra-cell-g04.htm http://www.michael-smith-engineers.co.uk/products/high-pressure-diaphragm-pumps/hydra-cell-g04.htm

Look forwards to hearing from someone. Many thanks Jane

edbr
09-16-2011, 02:12 AM
try this format
redirect 301 "/products/high-pressure-diaphram/hydra-cell-g03.htm" http://www.example.com/newpage.htm http://www.michael-smith-engineers.c...a-cell-g03.htm