Commit 9b22905e authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Rewrite landing pages

parent e30f6da4
......@@ -819,6 +819,13 @@ class PublishManager
foreach($this->landing as $landing) {
$htaccess .= "RewriteRule ^/{$landing}$ /{$landing}.html [L,NC]\n";
}
include_once(SERVER_ROOT."/../classes/ontology.php");
$o = new Ontology();
$klanding = array();
$o->KeywordsLanding($klanding,false);
foreach($klanding as $keyword) {
$htaccess .= "RewriteRule ^/{$keyword['keyword']}$ /{$keyword['keyword']}.html [L,NC]\n";
}
}
$this->fm->WritePage( "pub/.htaccess" , $htaccess);
$this->MessageSet($this->tr->Translate("redirect_published"));
......
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