phppro Posted June 9, 2013 Share Posted June 9, 2013 (edited) how can i remove .php extension file using .htaccess file Edited June 9, 2013 by phppro Link to comment Share on other sites More sharing options...
niche Posted June 9, 2013 Share Posted June 9, 2013 Why? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 10, 2013 Share Posted June 10, 2013 You can use mod_rewrite to send non-PHP requests to PHP files, or you can configure the server to handle certain file types with PHP. Link to comment Share on other sites More sharing options...
elmohack Posted June 10, 2013 Share Posted June 10, 2013 # Redirect to PHP if it exists.# e.g. example.com/foo will display the contents of example.com/foo.phpRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME}.php -fRewriteRule ^(.+)$ $1.php [L,QSA] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now