Commit e8e09aa7 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

added 303 for terms under the example namespaces

parent 4acab4eb
Pipeline #84 failed with stage
in 2 minutes and 53 seconds
......@@ -244,6 +244,12 @@ public class SiteManager extends SAREFErrorLogger {
writer.write(String.format("RewriteRule ^%s\\.([^\\./]+)$ %%1%s/%s.$1 [R=302]\n", version.getVersionPath(),
version.getVersionName(), project.getOntologyFileName()));
for(SAREFExample example : version.getExamples().values()) {
writer.write("RewriteCond %{REQUEST_URI} ^(.*)?/[^/]*$\n");
writer.write(String.format("RewriteRule ^%s/example/%s.([^/]+)/(.*)$ %%1 [R=303]\n", version.getVersionPath(), example.getName()));
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