mod rewrite

De bricosoft
Version datée du 3 novembre 2026 à 19:54 par Nettoyage gabarit (discussion | contributions) (Nettoyage : gabarit 2012 (widgets Twitter/Google/DISQUS morts et fichiers fantômes))
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)

mod_rewrite est un module d'apache pour la réécriture d'URL.

sous domaine vers dossier / subdomain to folder

Par exemple : toto.bricosoft.com vers bricosoft.com/toto

RewriteEngine on
RewriteCond %{HTTP_HOST} ^toto.bricosoft.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.toto.bricosoft.com$
RewriteRule ^(.*)$ http://www.bricosoft.com/index.php/toto$1 [R=301,L]

Liens

|url=http://www.bricosoft.com/Mod_rewrite }}