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 PROTECTED] wrote

RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Chirouze Olivier
Hi, I guess you should add [L] (last) to your first rule, and make sure the second one is AFTER. Thus, the first rule will work for *.html, and exit. When calling *.php, it will go to the second one... RewriteEngine on RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php [L] RewriteCond %{REQUEST_URI}

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, I

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 first

RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Chirouze Olivier
[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 processing

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
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 ? I have added the [L] but it seems

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

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/