mod rewrite

De bricosoft

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 }}