Lots of tweaks if php is supposed to run behind some fance rewrite rules