Re: running php even without .php extenstion, how can i do this?

From: Date: Thu, 27 May 2004 06:27:15 +0000
Subject: Re: running php even without .php extenstion, how can i do this?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-187040@lists.php.net to get a copy of this message
* Thus wrote Louie Miranda (louie@axishift.ath.cx): > I got what you mean, but can we do this on the whole directory instead by > files? > Like for example the whole / directory and /subdirectory/ so i wont be doing > that editing every files? If you want a specific directory to be executed you're looking more towards some mod_rewrite stuff with apache. Something like: # send all trafic to a php_file RewriteRule ^/(.*)$ /path/to/php_file [L] Or # ditto but only under dirname/ RewriteRule ^/dirname/(.*)$ /path/to/php_file [L] Of course this is getting a little offtopic and might be more suitable to some apache list to figure out the best solution on how to redirect a paticular request to a php file. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#187040) next »