<Directory "/your/app/path"> AllowOverride ALL Order allow,deny Allow from all </Directory>
在apache配置文件中加入以上配置即可。