Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Removing Extensions
  2. 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:
  3.  
  4. RewriteEngine On
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^([^\.]+)$ $1.php [NC,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement