Ceci est mon .htaccess, et je voudrais réécrire mon domain.com à www.domain.com. Comment puis-je faire ceci?apache url réécrire avec htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|xml|txt)$
RewriteCond %{REQUEST_URI} !example/
RewriteRule ^(.*)$ index.php?q=$1 [QSA]
Merci
double possible: http://stackoverflow.com/questions/1685962/htaccess-redirect-non-www-to-www-preserving-uri-string – jasonbar
vrai. Le 2ème était bon pour moi. Merci. (Je ne l'ai pas trouvé plus tôt.) –