I'm working on a big site and I have just noticed it seems to call each page twice.. most of the time..
there's a mod _rewrite script which rewrites the address to go to the controller script (which is called index.php) but each line is followed by the 'L' directive
above that I rewrite http to https
there's a php redirect component but that is not being called
I realise it could be several things but I'm not sure what the best plan of attack is
FWIW here's most of the mod_rewrite:
Options +FollowSymlinks
Options All -Indexes
ErrorDocument 401 /pagenotfound.php
ErrorDocument 403 /pagenotfound.php
ErrorDocument 404 /pagenotfound.php
ErrorDocument 500 /pagenotfound.php
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteRule ^Contractors/[^/]+/([^/]+)/(.*)$ index.php?sector=1&pg=$1&qs=$2 [NC,L]
RewriteRule ^Contractors/[^/]+/(.*)$ index.php?sector=1&pg=$1 [NC,L]
RewriteRule ^Contractors/(.*)$ index.php?sector=1&pg=$1 [NC,L]
RewriteRule ^Contract(or|ors)$ index.php?sector=1 [NC,L]
any pointers much appreciated