mod rewrite

De bricosoft
Version datée du 11 avril 2012 à 14:10 par Sysop (discussion | contributions)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
<google uid="C08" position="left"></google>
Fichier:Mod rewrite.png
Fichier:Mod rewrite.jpg
Fichier:Mod rewrite.gif
Fichier:Mod rewrite.svg

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

Erreur dans le widget DISQUS: Unable to load template 'wiki:DISQUS'