Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 如何为multistore opencart 2x提供通配符子域支持?_.htaccess_Opencart_Wildcard Subdomain - Fatal编程技术网

.htaccess 如何为multistore opencart 2x提供通配符子域支持?

.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

我有一个问题,opencart只支持特定的域名,比如
site.com
。我必须做些什么才能支持像
*.site.com
这样的域

主旨:

产品SEO url将替换子域。例如,产品有搜索引擎优化名称
iphone6
,所以url将是
iphone6.site.com
,我如何才能做到这一点?我需要
.htaccess
mod吗?还是怎样或者在
config.php
write what domain
http://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
如何为multistore opencart 2x执行此操作

另外:在Cpanel(域线程)中,我已经添加了这样的域*.site.com支持,我只需要opencart来支持它

我很乐意接受任何建议:)