From cb1a8c47d480abb9413b092e1900f5bbfd75d39f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 21 Aug 2019 10:06:24 +0200 Subject: [PATCH] Fix links not working under skimax domain --- config/sites/ep-reisen/config.yaml | 22 +++++++++++++--------- public/.htaccess | 18 +++++++++++++++--- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/config/sites/ep-reisen/config.yaml b/config/sites/ep-reisen/config.yaml index 0209e6e6..531c26e1 100644 --- a/config/sites/ep-reisen/config.yaml +++ b/config/sites/ep-reisen/config.yaml @@ -1,9 +1,12 @@ rootPageId: 9 -base: 'https://www.ep-reisen.de' +base: / baseVariants: - base: 'https://eptypo3.burn.dpn' condition: 'applicationContext == "Development"' + - + base: 'https://schnee-event.burn.dpn' + condition: 'applicationContext == "Development/Skimax"' languages: - title: Deutsch @@ -125,7 +128,7 @@ routeEnhancers: - 41 routes: - - routePath: '/ergebnis' + routePath: /ergebnis _controller: 'Search::searchresult' defaultController: 'Search::searchresult' StaticResultsPlugin: @@ -147,7 +150,8 @@ routeEnhancers: type: Extbase extension: EpProducts plugin: reseller - limitToPages: [1483] + limitToPages: + - 1483 routes: - routePath: '/{reseller_code}' @@ -187,11 +191,11 @@ routeEnhancers: routeFieldName: uid PageTypeSuffix: type: PageType - default: '/' + default: / index: '' map: - '/': 0 - '/json': 1701 - '/html': 1702 - '.json': 1803 - 'sitemap.xml': 1533906435 + /: 0 + /json: 1701 + /html: 1702 + .json: 1803 + sitemap.xml: 1533906435 diff --git a/public/.htaccess b/public/.htaccess index c0a1a3e4..71fc4732 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,4 +1,4 @@ -SetEnv TYPO3_CONTEXT "Development" +#SetEnv TYPO3_CONTEXT "Development" ### Begin: Compression ### @@ -252,8 +252,20 @@ AddDefaultCharset utf-8 #RewriteRule .? - [E=TYPO3_CONTEXT:Development] #RewriteCond %{HTTP_HOST} ^staging\.example\.com$ #RewriteRule .? - [E=TYPO3_CONTEXT:Production/Staging] - #RewriteCond %{HTTP_HOST} ^www\.example\.com$ - #RewriteRule .? - [E=TYPO3_CONTEXT:Production] + RewriteCond %{HTTP_HOST} ^eptypo3\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development] + RewriteCond %{HTTP_HOST} ^ep\-events\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development] + RewriteCond %{HTTP_HOST} ^ski\-wochenenden\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development] + RewriteCond %{HTTP_HOST} ^ski\-boarderweek\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development] + RewriteCond %{HTTP_HOST} ^snowzone\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development] + RewriteCond %{HTTP_HOST} ^unichamp\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development] + RewriteCond %{HTTP_HOST} ^schnee\-event\.burn\.dpn$ + RewriteRule .? - [E=TYPO3_CONTEXT:Development/Skimax] # Rule for versioned static files, configured through: # - $GLOBALS['TYPO3_CONF_VARS']['BE']['versionNumberInFilename']