.htaccess 如何为multistore opencart 2x提供通配符子域支持?
我有一个问题,opencart只支持特定的域名,比如.htaccess 如何为multistore opencart 2x提供通配符子域支持?,.htaccess,opencart,wildcard-subdomain,.htaccess,Opencart,Wildcard Subdomain,我有一个问题,opencart只支持特定的域名,比如site.com。我必须做些什么才能支持像*.site.com这样的域 主旨: 产品SEO url将替换子域。例如,产品有搜索引擎优化名称iphone6,所以url将是iphone6.site.com,我如何才能做到这一点?我需要.htaccessmod吗?还是怎样或者在config.phpwrite what domainhttp://www.*.site.com/?谢谢你的回答 这是我的.htaccess文件: RewriteEngine
site.com
。我必须做些什么才能支持像*.site.com
这样的域
主旨:
产品SEO url将替换子域。例如,产品有搜索引擎优化名称iphone6
,所以url将是iphone6.site.com
,我如何才能做到这一点?我需要.htaccess
mod吗?还是怎样或者在config.php
write what domainhttp://www.*.site.com/
?谢谢你的回答
这是我的.htaccess
文件:
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) /index.php?route=error/not_found [L]
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]
我有4个网站
- site1.com
- 网站2.com
- 网站3.com
- site4.com witch是唯一需要支持
*.site4.com