mirror of
https://git.coop/cotech/website.git
synced 2025-01-03 15:15:24 +00:00
conneg test, see #52
This commit is contained in:
parent
a24a6123cb
commit
f9a745046a
@ -7,7 +7,7 @@ This is a port of the current Wordpress version of the [CoTech Website][] to a s
|
|||||||
## Run the site locally
|
## Run the site locally
|
||||||
|
|
||||||
You can run the site on your computer as if it were live online using Jekyll. You will need `git` and `ruby` installed on your machine to do this. Then clone the repository
|
You can run the site on your computer as if it were live online using Jekyll. You will need `git` and `ruby` installed on your machine to do this. Then clone the repository
|
||||||
|
|
||||||
### ... using docker
|
### ... using docker
|
||||||
|
|
||||||
Make sure you have [docker](https://docs.docker.com/install/) (CE is fine) installed and running, then:
|
Make sure you have [docker](https://docs.docker.com/install/) (CE is fine) installed and running, then:
|
||||||
@ -16,7 +16,7 @@ Make sure you have [docker](https://docs.docker.com/install/) (CE is fine) insta
|
|||||||
cd website
|
cd website
|
||||||
git checkout dev
|
git checkout dev
|
||||||
./dev
|
./dev
|
||||||
|
|
||||||
And visit [localhost:4000](http://localhost:4000) to view the site.
|
And visit [localhost:4000](http://localhost:4000) to view the site.
|
||||||
|
|
||||||
### ... directly on your machine
|
### ... directly on your machine
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
layout: none
|
|
||||||
permalink: .htaccess
|
|
||||||
---
|
|
||||||
# Serve requests for /example using the files at /example.html
|
|
||||||
RewriteEngine on
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteRule ^(.*)$ $1.html
|
|
||||||
|
|
||||||
# Redirect requests for /example.html to /example
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
|
||||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
layout: none
|
|
||||||
permalink: .htaccess
|
|
||||||
---
|
|
||||||
# Serve requests for /example using the files at /example.html
|
|
||||||
RewriteEngine on
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteRule ^(.*)$ $1.html
|
|
||||||
|
|
||||||
# Redirect requests for /example.html to /example
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
|
||||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
layout: none
|
|
||||||
permalink: .htaccess
|
|
||||||
---
|
|
||||||
# Serve requests for /example using the files at /example.html
|
|
||||||
RewriteEngine on
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteRule ^(.*)$ $1.html
|
|
||||||
|
|
||||||
# Redirect requests for /example.html to /example
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
|
||||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
|
||||||
|
|
13
htaccess
13
htaccess
@ -2,15 +2,4 @@
|
|||||||
layout: none
|
layout: none
|
||||||
permalink: .htaccess
|
permalink: .htaccess
|
||||||
---
|
---
|
||||||
# Serve requests for /example using the files at /example.html
|
Options +MultiViews
|
||||||
RewriteEngine on
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteRule ^(.*)$ $1.html
|
|
||||||
|
|
||||||
# Redirect requests for /example.html to /example
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
|
||||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user