.htaccess to deny all .php except w.php ?

Discussion in 'Apache' started by Think411, Sep 28, 2008.

  1. #1
    My .htaccess is currently setup like this:

    <Files ~ "^.*\.(php|cgi|pl|php3|php4|php5|php6|phtml|shtml)">
    Order allow,deny
    Deny from all
    </Files>

    This makes it so I can not run ANY php files from that directory...

    I would like to set it up so I can not run any php files except w.php, how would I set this up to only allow w.php to be ran and not other php files?

    Thanks!
     
    Think411, Sep 28, 2008 IP