Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Removing Extensions
- To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file:
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^([^\.]+)$ $1.php [NC,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement