3
0
mirror of https://git.coop/cotech/website.git synced 2025-09-17 19:14:34 +00:00

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
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan web.cotech.uk > ~/.ssh/known_hosts
- ssh-keyscan 81.95.52.59 >> ~/.ssh/known_hosts
- ssh-keyscan www.cotech.coop > ~/.ssh/known_hosts
- ssh-keyscan 81.95.52.13 >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- bundle install --path vendor
@ -40,13 +40,13 @@ deploy:dev:
stage: staging
script:
- 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:
paths:
- public
environment:
name: dev
url: https://dev.coops.tech
url: https://dev.cotech.coop
only:
- master
@ -54,13 +54,13 @@ deploy:production:
stage: production
script:
- 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:
paths:
- public
environment:
name: production
url: https://www.coops.tech
url: https://www.cotech.coop
only:
- master
when: manual

View File

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