Page is a not externally linkable
jasimon9 - 12:30 am on Jan 23, 2013 (gmt 0)
Actually I should have made more clear that within PHP I am accessing $_SERVER['REQUEST_URI']. There is no THE_REQUEST within the PHP server vars.
I am in a bit of a pickle (aka catch-22) as my dev environment is in Windows, and the whole redirect thing fails in my windows environment. So I am using this as a goad to abandon windows, as I cannot debug now.
While I am at is, here is a sample of what is written to the rewrite log on windows, when it loops (which does not occur on *nix):
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (2) [perdir F:/Websites/RepHunter/current/] rewrite 'search-by-keyword.php' -> 'http://192.168.1.106:8080/independent-sales-reps-finder.php?'
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (2) [perdir F:/Websites/RepHunter/current/] explicitly forcing redirect with http://192.168.1.106:8080/independent-sales-reps-finder.php
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (1) [perdir F:/Websites/RepHunter/current/] escaping http://192.168.1.106:8080/independent-sales-reps-finder.php for redirect
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (1) [perdir F:/Websites/RepHunter/current/] redirect to http://192.168.1.106:8080/independent-sales-reps-finder.php [REDIRECT/301]
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (2) [perdir F:/Websites/RepHunter/current/] rewrite 'independent-sales-reps-finder.php' -> '/search-by-keyword.php?usertype=pri'
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (1) [perdir F:/Websites/RepHunter/current/] internal redirect with /search-by-keyword.php [INTERNAL REDIRECT]
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#7856d0/initial/redir#1] (1) [perdir F:/Websites/RepHunter/current/] pass through F:/Websites/RepHunter/current/search-by-keyword.php
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#78b718/initial] (2) [perdir F:/Websites/RepHunter/current/] rewrite 'independent-sales-reps-finder.php' -> '/search-by-keyword.php?usertype=pri'
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#78b718/initial] (1) [perdir F:/Websites/RepHunter/current/] internal redirect with /search-by-keyword.php [INTERNAL REDIRECT]
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767618/initial/redir#1] (1) [perdir F:/Websites/RepHunter/current/] pass through F:/Websites/RepHunter/current/search-by-keyword.php
192.168.1.205 - - [22/Jan/2013:18:03:29 --0600] [192.168.1.106/sid#697c70][rid#767650/initial] (2) [perdir F:/Websites/RepHunter/current/] rewrite 'independent-sales-reps-finder.php' -> '/search-by-keyword.php?usertype=pri'
and on and on
And here is a sample of what happens when the rewrite fails:
192.168.1.205 - - [22/Jan/2013:18:04:36 --0600] [192.168.1.106/sid#697c70][rid#789700/initial] (1) [perdir F:/Websites/RepHunter/current/] pass through F:/Websites/RepHunter/current/independent-sales-reps-finder.php
192.168.1.205 - - [22/Jan/2013:18:04:36 --0600] [192.168.1.106/sid#697c70][rid#78c050/initial/redir#1] (1) [perdir F:/Websites/RepHunter/current/] pass through F:/Websites/RepHunter/current/error404.php