Explorar o código

add redirection from www. to domain on custom domain setting

Olivier Massot hai 10 meses
pai
achega
4af657ad76
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      ot_admin/Classes/Controller/SiteController.php

+ 3 - 0
ot_admin/Classes/Controller/SiteController.php

@@ -1475,6 +1475,9 @@ class SiteController extends ActionController
             } catch (\RuntimeException $e) {} // silent the error until this https://assistance.opentalent.fr/browse/V8-3344
         }
 
+        // Redirect the www.xyz to xyz
+        $this->addRedirection('www.' . $newDomain, $newDomain);
+
         $this->otCacheManager->clearSiteCache($rootUid, true);
         return $rootUid;
     }