Redirecting old document's urls to new website

Note: works only on the production website since Redirect(Match) accepts
only absolute url.
parent 2618ec6e
Pipeline #4699 passed with stages
in 3 minutes and 28 seconds
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
......
Markdown is supported
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