[EMAIL PROTECTED] tuning mod_rewrite

2007-06-04 Thread Feris Thia
Hi All, I have a .htaccess file which is working perfectly for redirecting root (/) pages to be searched to a subfolder. The rule is below ... = RewriteEngine on RewriteCond %{REQUEST_URI} ^/(profile|images)$ RewriteCond %{REQUEST_FILENAME} !-f Rewrit

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-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 h

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia
eal 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... Olivier CHIROUZE I&0 Infrastructure Volvo Information Technology ____ From: Feris Thia [mailto:[EMA

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 &

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

[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