Jump to content
  • Create New...

Masquer les Extensions .PHP / .HTML

Recommended Posts

  • Bot

Niveau requis Débutant

Temps estimé : 3 minutes



Je vous partage ça vite fait : Ce petit bout de code est à insérer dans le fichier .htaccess de votre site. Il vous permettra d'enlever l'extension de vos pages dans vos url. Par exemple : https://funky-emu.net/index.phphttps://funky-emu.net/index





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




Hey hey

090100logo.png 090149logo-4-bis.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 month later...
  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.