Android, Java, PHP, Linux, Databases and other funny things.
I'm doing, I'm learning, I post it here.
Wednesday, September 19, 2012
htaccess non-www to www
RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] <Files .htaccess> order allow,deny deny from all </Files>
No comments:
Post a Comment