Unverified Commit adf24542 authored by Roland Denis's avatar Roland Denis
Browse files

Redirecting old document's urls to new website

Note: works only on the production website since Redirect(Match) accepts
only absolute url.
parent 2618ec6e
RedirectMatch permanent "^/(IMG|Documents)/(.*)$" "/attachments/spip/$1/$2"
......@@ -9,10 +9,11 @@ SITEURL = ''
PATH = 'content'
STATIC_PATHS = ['static/robots.txt', 'static/spip.php', 'job_offers']
STATIC_PATHS = ['static/robots.txt', 'static/spip.php', 'static/.htaccess', 'job_offers']
EXTRA_PATH_METADATA = {
'static/robots.txt': {'path': 'robots.txt'},
'static/spip.php': {'path': 'spip.php'},
'static/.htaccess': {'path': '.htaccess'},
}
READERS = {'html': None} # prevent html attachments from being processed
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment