[gimp-web/testing] Add .htaccess to the site
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Add .htaccess to the site
- Date: Sun, 8 Jan 2017 03:41:57 +0000 (UTC)
commit 9cdce13a7cfaac0ab8cfe2b511a627b45ad68775
Author: Pat David <patdavid gmail com>
Date: Sat Jan 7 21:38:56 2017 -0600
Add .htaccess to the site
We didn't previously use an .htaccess.
I'm adding this now to allow us to do a 301 redirect
for the /macintosh/ page. I've set it to redirect to
/downloads/.
content/.htaccess | 4 ++++
pelicanconf.local.py | 2 +-
pelicanconf.testing.py | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/content/.htaccess b/content/.htaccess
new file mode 100644
index 0000000..b69e6e3
--- /dev/null
+++ b/content/.htaccess
@@ -0,0 +1,4 @@
+#
+# 301 for the old macintosh page
+#
+Redirect 301 /macintosh/index.html https://www.gimp.org/downloads/
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 279f445..63ed765 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -74,7 +74,7 @@ DEFAULT_PAGINATION = False
READERS = {'html': None}
# This will copy over these folders w/o modification
-STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json']
+STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', '.htaccess']
# This sets which directories will be parsed as pages (vs. news/articles)
# If a new directory is to be added under content/, make sure it gets added here.
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index d9e86e1..e01dab2 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -75,7 +75,7 @@ DEFAULT_PAGINATION = False
READERS = {'html': None}
# This will copy over these folders w/o modification
-STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json']
+STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', '.htaccess']
# This sets which directories will be parsed as pages (vs. news/articles)
# If a new directory is to be added under content/, make sure it gets added hereMarkdown.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]