pretty urls question

Permalink
Hi i have 2 websites using C5 i have turned on pretty urls on both of them and they both have the same code in the .htacces files but they are acting difrently.

First this is the code both sites have in their .htacces file:

AddType text/x-component .htc
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)$http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>

The website that is working does the following:
it redirects:
vizsec.com/services/cctv/
and
vizsec.com/index.php/services/cctv/

to:www.www.vizsec.com/services/cctv/...

but the other website (decacake.co.uk) with the same htacces code does not redirect. i can get to the pages by using many URL's.

What can i do to make it redirect? thank you.

chris123uk
 
Job replied on at Permalink Reply
Job
Different servers maybe? I've had issues on Windows based servers befoer with code that ran fine on Unix.
chris123uk replied on at Permalink Reply
chris123uk
both are on the same virtual server