Google help on software/programming And Windows Tricks: Remove .PHP or .HTML From URL

helponsoftware

Thursday 24 October 2013

Remove .PHP or .HTML From URL


  1. Enable The below module in Httpd.conf in Apache

  2. "rewrite_module" find it in httpd.conf and remove the "#" from that line

  3. Create .htaccess file in notepad with below code

  4. RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]

  5. Save this file with the Extension ".htaccess" without giving any name
now you don't need to write extension in code for jump any page

No comments:

Post a Comment