...
|
...
|
@@ -12,8 +12,8 @@ module.exports = () => { |
|
|
guangReg = /^\/guang/,
|
|
|
guangDetailReg = /.html$/;
|
|
|
|
|
|
if (req.subdomains.length > 1) {
|
|
|
res.redirect(helpers.urlFormat(req.path, req.query, req.subdomains[0]));
|
|
|
if (req.subdomains.length > 1 && req.subdomains[1] === 'www') {
|
|
|
res.redirect(301, helpers.urlFormat(req.path, req.query, req.subdomains[0]));
|
|
|
}
|
|
|
if (req.subdomains.length) {
|
|
|
switch (req.subdomains[0]) {
|
...
|
...
|
|