AMH 社区首页
AMH社区 - 开放自由有价值的社区
	
		
    	 | 
	|
|---|---|
| 
	
	 seovery  | 
	
	 
		  seovery 发表于 2013-07-31 11:01:56
	 
	 本帖最后由 seovery 于 2013-7-31 11:03 编辑  
	安装了 amh 4.0 运行 opencart 也正常了,能够发送邮件了,因为 amh 之前版本都不行。值得庆祝下。 opencart 默认htaccess 规则是: ============================== RewriteBase / RewriteCond %{HTTP_HOST} !www\. RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ============================== 用工具转换:http://winginx.com/htaccess 转换后代码如下: ============================== location ~ .*\.(ico|gif|jpg|jpeg|png|js|css) { } location / { if ($http_host !~ "www\."){ rewrite ^/(.*) http://www.$http_host/$1 redirect; } if (!-e $request_filename){ rewrite ^/([^?]*) /index.php?_route_=$1 break; } } ============================== 保存为opencart.conf,重新加载下nginx,发现规则无效,竟然显示php源码了。 
				2013-07-31 11:01:56 1
	 
		
	 | 
	
| 
		
		 
		amysql  | 
		 这样看看。 
		
		if ($http_host !~ "www\."){ 
				rewrite ^/(.*) http://www.$http_host/$1 redirect; } if (!-e $request_filename){ rewrite ^/([^?]*) /index.php?_route_=$1 break; } 
		回复 
		2013-07-31 14:24:17 2
		 
				AMH面板 - 好用高效低占用、安全可靠极稳定  | 
		
 HTTPS
 
			[求助帖]
		求助:安装 amh 4.0 后 opencart nginx 伪静态后显示源码