openaire-api-http-doc/.htaccess

29 lines
1.0 KiB
ApacheConf

RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ ./index.html
DirectoryIndex overview.html
Redirect /overview /overview.html
Redirect /advanced /advanced.html
Redirect /authentication /authentication.html
Redirect /broker /advanced.html
Redirect /api /api.html
Redirect /auth_services /auth_services.html
Redirect /bulk-projects /bulk-projects.html
Redirect /overview /overview.html
Redirect /registeredService /registeredService.html
Redirect /basic /basic.html
Redirect /changelog /changelog.html
Redirect /graph-dumps /graph-dumps.html
Redirect /notFound /notFound.html
Redirect /personalToken /personalToken.html
Redirect /response-metadata-format /response-metadata-format.html
ErrorDocument 500 https://graph.openaire.eu/error
ErrorDocument 404 https://graph.openaire.eu/error