switch to www.cotech.coop

This commit is contained in:
Chris Croome
2025-07-29 14:28:52 +01:00
parent 978a1dc91e
commit e616a70552
2 changed files with 10 additions and 11 deletions

View File

@ -21,8 +21,8 @@ before_script:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- ssh-keyscan web.cotech.uk > ~/.ssh/known_hosts - ssh-keyscan www.cotech.coop > ~/.ssh/known_hosts
- ssh-keyscan 81.95.52.59 >> ~/.ssh/known_hosts - ssh-keyscan 81.95.52.13 >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- bundle install --path vendor - bundle install --path vendor
@ -40,13 +40,13 @@ deploy:dev:
stage: staging stage: staging
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/ - rsync -aqz --delete-after public/ cotech@www.cotech.coop:sites/dev/
artifacts: artifacts:
paths: paths:
- public - public
environment: environment:
name: dev name: dev
url: https://dev.coops.tech url: https://dev.cotech.coop
only: only:
- master - master
@ -54,13 +54,13 @@ deploy:production:
stage: production stage: production
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/ - rsync -aqz --delete-after public/ cotech@www.cotech.coop:sites/default/
artifacts: artifacts:
paths: paths:
- public - public
environment: environment:
name: production name: production
url: https://www.coops.tech url: https://www.cotech.coop
only: only:
- master - master
when: manual when: manual

View File

@ -13,15 +13,14 @@ AddOutputFilter DEFLATE svg
AddOutputFilter DEFLATE css AddOutputFilter DEFLATE css
AddOutputFilter DEFLATE js AddOutputFilter DEFLATE js
# URL's that changed # URL's that changed
Redirect /co-op/the-dot-project https://www.coops.tech/co-op/dot-project Redirect /coops/ https://www.cotech.coop/co-op/
Redirect /coops/ https://www.coops.tech/co-op/ Redirect /technology/gnu-bash https://www.cotech.coop/technology/bash
Redirect /technology/gnu-bash https://www.coops.tech/technology/bash Redirect /co-op/graphics-coop https://www.cotech.coop/co-op/form-and-function
Redirect /co-op/graphics-coop https://www.coops.tech/co-op/form-and-function
# Canonical URLs redirect to the domain with a www # Canonical URLs redirect to the domain with a www
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine on RewriteEngine on
RewriteCond %{HTTP_HOST} ^coops\.tech$ RewriteCond %{HTTP_HOST} ^coops\.tech$
RewriteRule ^/?(.*) https://www.coops.tech/$1 [R,L] RewriteRule ^/?(.*) https://www.cotech.coop/$1 [R,L]
</IfModule> </IfModule>
# Redirect HTTP to HTTPS # Redirect HTTP to HTTPS
# https://wiki.apache.org/httpd/RewriteHTTPToHTTPS # https://wiki.apache.org/httpd/RewriteHTTPToHTTPS