cvs: bugtracker /htdocs .htaccess
| From: | Barry Carlyon | Date: | Thu, 14 Aug 2008 09:19:59 +0000 |
| Subject: | cvs: bugtracker /htdocs .htaccess | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-2419@lists.php.net to get a copy of this message | ||
bcarlyon Thu Aug 14 09:19:59 2008 UTC
Modified files:
/bugtracker/htdocs .htaccess
Log:
Something I forgot in my .htaccess that is usually in my boiler plate no-www.org
http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/.htaccess?r1=1.10&r2=1.11&diff_format=u
Index: bugtracker/htdocs/.htaccess
diff -u bugtracker/htdocs/.htaccess:1.10 bugtracker/htdocs/.htaccess:1.11
--- bugtracker/htdocs/.htaccess:1.10 Thu Aug 14 09:06:48 2008
+++ bugtracker/htdocs/.htaccess Thu Aug 14 09:19:59 2008
@@ -1,5 +1,8 @@
RewriteEngine on
+RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
+ RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
+
RewriteRule favicon.ico favicon.ico [L]
RewriteRule offline.html offline.html [L]
RewriteRule cache.php cache.php [L]