Commit ef85b091 authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue72' into 'master'

handle the case where the bot requires the sitemap.txt.

See merge request !95
parents 71258545 c76e760e
Pipeline #13916 passed with stages
in 1 minute and 22 seconds
RewriteEngine on RewriteEngine on
RewriteBase / RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
# redirect a call to doi.esrf.fr/DOIprefix/DOIsuffix to doi.esrf.fr/index.html?DOI=DOIprefix/DOIsuffix # 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/) ...@@ -10,8 +11,12 @@ RewriteCond %{REQUEST_URI} !(images/)
RewriteCond %{HTTP_USER_AGENT} !googlebot [NC] RewriteCond %{HTTP_USER_AGENT} !googlebot [NC]
RewriteRule "/(.+)$" "index.html?DOI=$1" [NC,L] 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 # P requires that the apache libs 'proxy_http' and 'proxy' is loaded
RewriteCond %{HTTP_USER_AGENT} googlebot [NC] RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule "(.+)$" "http://localhost:3002/render/http://%{HTTP_HOST}/$1" [P,L] # 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 "(.+)$" "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] RewriteRule "(.+)$" "http://render-tron.appspot.com/render/http://doi.esrf.fr/$1" [P,L]
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