Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-05 Thread Feris Thia
On 2/3/07, Troy Moseley <[EMAIL PROTECTED]> wrote: If all your client wants is to hide the fact that PHP is being used then why not simply change the application-type line, ie. AddType application/x-httpd-php .htm Hi Troy, That will not solve the problem since actually I need to do only

RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-03 Thread Troy Moseley
'secret' is safe... From: Feris Thia [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 8:46 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] URLRewrite Question On 2/2/07, Krist van Besien <[EMAIL PROT

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
On 2/3/07, Bob <[EMAIL PROTECTED]> wrote: Feris Thia wrote: > I have added the [L] but it seems not stopping. It does. But there is an internal redirect in directory context. Put RewriteEngine on RewriteRule ^/([0-9a-zA-Z]+)\.html$ /$1.php [PT] RewriteRule \.php$ - [F] into your httpd.conf/

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Bob
Feris Thia wrote: I have added the [L] but it seems not stopping. It does. But there is an internal redirect in directory context. Put RewriteEngine on RewriteRule ^/([0-9a-zA-Z]+)\.html$ /$1.php [PT] RewriteRule \.php$ - [F] into your httpd.conf/ per-server context (main server config secti

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
IL PROTECTED] Sent: 02 February 2007 15:55 To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] URLRewrite Question Sorry... I think I understand both of you guys... the [L] is to stop any further rule processing. Is it work with Apache on Windows ?

RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Chirouze Olivier
eris Thia [mailto:[EMAIL PROTECTED] Sent: 02 February 2007 15:55 To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] URLRewrite Question Sorry... I think I understand both of you guys... the [L] is to stop any further rule proce

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
Sorry... 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. Regards, Feris On 2/2/07, Feris Thia <[EMAIL PROTECTED]> wrote: On 2/2/07, Krist van Besien <[EMAIL PROTECTE

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
On 2/2/07, Krist van Besien <[EMAIL PROTECTED]> wrote: 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

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
Hi Olivier, This still doesn't work as what I want it too. It makes every access to html and php forbidden. Regards, Feris On 2/2/07, Chirouze Olivier <[EMAIL PROTECTED]> wrote: Hi, I guess you should add [L] ("last") to your first rule, and make sure the second one is AFTER. Thus, the firs

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Krist van Besien
On 2/2/07, Feris Thia <[EMAIL PROTECTED]> wrote: Hi Everyone, I configured my .htaccess to map/redirect all my *.html page to *.php pages like below RewriteEngine on RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php It works. But now,

RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Chirouze Olivier
Subject: [EMAIL PROTECTED] URLRewrite Question Hi Everyone, I configured my .htaccess to map/redirect all my *.html page to *.php pages like below RewriteEngine on RewriteRule ^([0-

[EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
Hi Everyone, I configured my .htaccess to map/redirect all my *.html page to *.php pages like below RewriteEngine on RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php It works. But now, I want the client cannot access the php script dire