Commit 147bc843 authored by Maxime Lefrançois's avatar Maxime Lefrançois

solved issue

parent 5ecdf423
Pipeline #3771 passed with stage
in 2 minutes and 52 seconds
......@@ -36,22 +36,11 @@ import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import org.apache.commons.io.FileUtils;
import org.apache.jena.query.Dataset;
import org.apache.jena.query.QueryExecutionFactory;
import org.apache.jena.query.ReadWrite;
import org.apache.jena.query.text.TextDatasetFactory;
import org.apache.jena.query.text.TextIndexConfig;
import org.apache.jena.query.text.TextIndexDB;
import org.apache.jena.query.text.TextIndexLucene;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.sparql.expr.nodevalue.NodeValueString;
import org.apache.log4j.Layout;
import org.apache.log4j.PatternLayout;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sun.javafx.geom.AreaOp.NZWindOp;
import fr.emse.gitlab.saref.managers.DatasetManager;
import fr.emse.gitlab.saref.managers.OntologyManager;
import fr.emse.gitlab.saref.managers.SiteManager;
......
......@@ -218,7 +218,7 @@ public class SiteManager extends SAREFErrorLogger {
writer.write(String.format("RewriteRule ^%s/(.*)$ /%s/$1.conneg\n\n", project.getPath(), project.getPath()));
// redirects core.ttl to core/v1.1.1.ttl
writer.write(String.format("RewriteRule ^%s\\.([^\\./]+)$ /%s.$1\n\n",
writer.write(String.format("RewriteRule ^%s\\.([^\\./]+)$ /%s.$1 [R=302,NE]\n\n",
project.getPath(), lastVersion.getVersionPath()));
for (SAREFVersion version : repository.getVersions().values()) {
......
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