Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Prestashop 1.5 上,每个制造商都有一个子域。
我有兴趣使用子域(例如)manufacturerX.domainshop.com显示(例如) domainshop.com/?id_manufacturer=45
我该怎么做?谢谢
如果您的制造商很少,您可以轻松修改.htaccess。
为每个制造商添加这些行(将“2”和“manufac”替换为您的制造商的 ID 和名称):
# redirect to manufacturer subdomain RewriteCond %{HTTP_HOST} ^manufacturerX.domainshop.com$ RewriteRule ^(.*)$ http://www.domainshop.com/2_manufacturerX [R=301,L,QSA]