Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime Chaillet
doi-landing-page
Commits
c76e760e
Commit
c76e760e
authored
Aug 27, 2019
by
Maxime Chaillet
Browse files
handle the case where the bot requires the sitemap.txt.
parent
d9eab131
Pipeline
#13915
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
www/.htaccess
View file @
c76e760e
RewriteEngine
on
RewriteBase
/
RewriteCond
%{REQUEST_FILENAME} !-f
# redirect a call to doi.esrf.fr/DOIprefix/DOIsuffix to doi.esrf.fr/index.html?DOI=DOIprefix/DOIsuffix
...
...
@@ -10,8 +11,12 @@ RewriteCond %{REQUEST_URI} !(images/)
RewriteCond
%{HTTP_USER_AGENT} !googlebot [NC]
RewriteRule
"/(.+)$" "index.html?DOI=$1" [NC,L]
# When a googlebot is crawling around
# P requires that the apache libs 'proxy_http' and 'proxy' is loaded
RewriteCond
%{HTTP_USER_AGENT} googlebot [NC]
RewriteCond
%{REQUEST_FILENAME} !-f
# RewriteRule "(.+)$" "http://localhost:3002/render/http://%{HTTP_HOST}/$1" [P,L]
# RewriteRule "(.+)$" "https://render-tron.appspot.com/render/http://%{HTTP_HOST}/$1" [P,L]
RewriteRule
"(.+)$" "http://render-tron.appspot.com/render/http://doi.esrf.fr/$1" [P,L]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment