httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chirouze Olivier" <>
Subject RE: [users@httpd] URLRewrite Question
Date Fri, 02 Feb 2007 15:14:09 GMT
I guess nothing is supposed to work on some platform and not on others
(Windows, Unix...).
Did you try upgrading RewriteLogLevel to 3? You should get more
information on what's happening.

Another note: Kriss is right, if you want to redirect anything to your
php files, remember to never print the real php path. Never use PHP_SELF
or such: instead, always replace php to html when you need links,
redirect, or URL that would be printed to your html output...

I&0 Infrastructure 
Volvo Information Technology 



	From: Feris Thia [] 
	Sent: 02 February 2007 15:55
	Subject: Re: [users@httpd] URLRewrite Question
	I think I understand both of you guys... the [L] is to stop any
further rule processing. Is it work with Apache on Windows ?
	I have added the [L] but it seems not stopping.
	On 2/2/07, Feris Thia <> wrote: 

		On 2/2/07, Krist van Besien < >
			RewriteRule processing doesn't stop when a rule
matches, unless you
			tell it to. So you first rewrite *.html to *.php
and then tell your
			server to forbid access to *.php, and you get
exactly that.
			First a question: Why do you want to do this?
This will cause all 
			kinds of trouble, like when a piece of php
generates self referencing
			urls, that will naturlally end in .php. Forms
for example work like

		Hi Krist,
		It is requested by my client as he doesn't want client
to guess the scripting engine that being used. And how do I forbid the
php extension access while stil can map html to php extension ?

			What you can do however is: 
			- Play with the order of the rules.
			- Add the [L] flag to stop processing.


		Hm... can you please give me an example ? I'm quite
frustrated with this :) 

		Many Thanks... 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message