note 85060 added to security.hiding

From: Date: Wed, 13 Aug 2008 08:15:39 +0000
Subject: note 85060 added to security.hiding
Groups: php.notes 
Request: Send a blank email to php-notes+get-143433@lists.php.net to get a copy of this message
Hi All, I tried the following rewrite rule and it works fine Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)\.htm$ $1.php [nc] However, this example only works when the pages are all accessed via http but if one of the links is pointing to a https URL e.g. user is being redirected to a secure login.html (which is translated by the rewrite rule to login.php), the rewrite rule will display a page not found (login.php) error although the actual login.php file is there. How can you make this rule work on both http and https. For e.g. assuming that the HTTP host is ‘http://www.example.com’ and that the https host is ‘https://web99.secure-secure.com/example.com/’? Regards, Hayden ---- Server IP: 87.124.64.96 Probable Submitter: 82.43.88.75 ---- Manual Page -- http://www.php.net/manual/en/security.hiding.php Edit -- https://master.php.net/note/edit/85060 Del: integrated -- https://master.php.net/note/delete/85060/integrated Del: useless -- https://master.php.net/note/delete/85060/useless Del: bad code -- https://master.php.net/note/delete/85060/bad+code Del: spam -- https://master.php.net/note/delete/85060/spam Del: non-english -- https://master.php.net/note/delete/85060/non-english Del: in docs -- https://master.php.net/note/delete/85060/in+docs Del: other reasons-- https://master.php.net/note/delete/85060 Reject -- https://master.php.net/note/reject/85060 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143433) next »