Archive

Archive for the ‘Web’ Category

Joomla1.6.3都出来了

April 26th, 2011 No comments

4月14号发布的1.6.2,而4月18号发布的1.6.3。
真不知道应该说Joomla团队勤奋好呢,还是业余好?
其中在1.6.2中,共修复了8个安全问题,115个bug,
而1.6.3中,修复了4个bug。
看来软件没有认真测试就发布正式版,真是找罪受;不知道Joomla是否受到了教训?
也不知道有多少用Joomla1.6.x建的站遭被黑。
相比较之下,Drupal就踏实多了,到目前为止,7.0还没有发布新版本,当然前提是Drupal在发布正式版前认真仔细的测试,和众多Beta和RC版本。
记得当时用Drupal的RC版本的时候,都感觉比现在的Joomla1.6.3要稳定的多。
个人感觉,Joomla还要经过2个版本之后,才能正式建站。
不知道Joomla1.6的发布是否会成为Joomla的滑铁卢?

Categories: Joomla, Web Tags:

prevent people from using the addon domain as a subdomain of your primary domain.

September 22nd, 2009 1 comment

To prevent people from using the addon domain as a subdomain of your primary domain, just put the following code into the .htaccess file located at the subdomains folder

RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain.primarydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.primarydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^addondomain.com$
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ http://www.addondomain.com/ [R=301,L]
Categories: Web Tags: , ,

Add an Expires Header to static components with mod_expires

August 16th, 2009 1 comment

According to Yahoo’s Best Practices for Speeding Up Your Web Site,
adding an expires header to static components can improve web site’s performance greatly.
Here is the simplest way to add expires header.
Open .htaccess file, and append the code.

<IfModule mod_expires.c>
   <FilesMatch "\.(ico|gif|jpg|JPG|jpeg|png|swf|css|js|html?|xml|txt)$">
      ExpiresActive On
      ExpiresDefault "access plus 1 years"
   </FilesMatch>
</IfModule>

More details about mod_expires, please refer:
http://httpd.apache.org/docs/2.0/mod/mod_expires.html