i use php build web applications, want web pages without .php extension in browser's address bar. eample http://www.example.com/index.php shows http://www.example.com/index in browser's address bar.
how can this?
put in file named .htaccess in www-root:
rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(([a-za-z0-9\-]+/)*[a-za-z0-9\-]+)?$ $1.php this works if you're running apache , have mod_rewrite activated.
Comments
Post a Comment