Revision history for Mod032bModRewrite
Revision [23265]
Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]Additions:
**[[http://www.wakkawiki.com/JoeD | Joe Delaney]]** -- [[http://www.wakkawiki.com/RewriteMode | RewriteMode @ WakkaWiki]]
**[[JsnX | Jason Tourtelotte]]** -- Minor improvements.
**[[JsnX | Jason Tourtelotte]]** -- Minor improvements.
Deletions:
**[[JsnX Jason Tourtelotte]]** -- Minor improvements.
Revision [19286]
Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]No Differences
Revision [17207]
Edited on 2007-07-07 14:30:52 by JavaWoman [standardized link to WakkaWiki origin and credit links]Additions:
**[[http://www.wakkawiki.com/JoeD Joe Delaney]]** -- [[http://www.wakkawiki.com/RewriteMode RewriteMode @ WakkaWiki]]
**[[JsnX Jason Tourtelotte]]** -- Minor improvements.
**[[JsnX Jason Tourtelotte]]** -- Minor improvements.
Deletions:
[[http://jason.tourtelotte.net Jason Tourtelotte]] -- Minor improvements.
Additions:
<?php echo (!$user || ($user["doubleclickedit"] == Y)) && ($this->GetMethod() == "show") ? "ondblclick=\"\" " : "" ?>
<?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?>
>
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->config["base_url"] ?>TextSearch<?php
if (!$this->config["rewrite_mode"])
echo "&";
else
echo "?";
} ?>phrase=<?php echo urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php echo $this->Link($this->config["root_page"]); ?> ::
<?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "" ?>
You are <?php echo $this->Format($this->UserName()) ?>
</div>
%%
You will have to edit actions/footer.php too, look for the img tag with the "xml/xml.gif" source and change it to
%%
<img src=\"xml/xml.gif\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" />
%%
Now in handlers/page/revisions.php
%%(php) replace
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
with
if (!$this->config["rewrite_mode"]) {
$output .= "<td> <a href=\"".$this->href("show")."&time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
else
{
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
%%
There may be other broken links that depend on the rewrite rules (look on WakkaBugTracker), but I haven't found any others yet. With these modifications you can turn rewrite_mode on or off at will (remember to change the base_url too) and the stylesheets, xml icon, back-linking and revisions keep working.
You may also need to delete the .htaccess file on the /xml and /css directories.
actions/recentchanges.php need the same xml/xml.gif as actions/footer.php
Similarly in handlers/page/revisions.xml.php
%%(php) replace
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
with
if (!$this->config["rewrite_mode"]) {
$xml .= "<link>".$this->href("show")."&time=".urlencode($page["time"])."</link>\n";
}
else
{
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
}
%%
<?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?>
>
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->config["base_url"] ?>TextSearch<?php
if (!$this->config["rewrite_mode"])
echo "&";
else
echo "?";
} ?>phrase=<?php echo urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php echo $this->Link($this->config["root_page"]); ?> ::
<?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "" ?>
You are <?php echo $this->Format($this->UserName()) ?>
</div>
%%
You will have to edit actions/footer.php too, look for the img tag with the "xml/xml.gif" source and change it to
%%
<img src=\"xml/xml.gif\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" />
%%
Now in handlers/page/revisions.php
%%(php) replace
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
with
if (!$this->config["rewrite_mode"]) {
$output .= "<td> <a href=\"".$this->href("show")."&time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
else
{
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
%%
There may be other broken links that depend on the rewrite rules (look on WakkaBugTracker), but I haven't found any others yet. With these modifications you can turn rewrite_mode on or off at will (remember to change the base_url too) and the stylesheets, xml icon, back-linking and revisions keep working.
You may also need to delete the .htaccess file on the /xml and /css directories.
actions/recentchanges.php need the same xml/xml.gif as actions/footer.php
Similarly in handlers/page/revisions.xml.php
%%(php) replace
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
with
if (!$this->config["rewrite_mode"]) {
$xml .= "<link>".$this->href("show")."&time=".urlencode($page["time"])."</link>\n";
}
else
{
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
}
%%
Deletions:
Additions:
<?php echo (!$user || ($user["doubleclickedit"] == Y))
Deletions:
<?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?>
>
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->config["base_url"] ?>TextSearch<?php
if (!$this->config["rewrite_mode"])
echo "&";
else
echo "?";
} ?>phrase=<?php echo urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php echo $this->Link($this->config["root_page"]); ?> ::
<?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "" ?>
You are <?php echo $this->Format($this->UserName()) ?>
</div>
%%
You will have to edit actions/footer.php too, look for the img tag with the "xml/xml.gif" source and change it to
%%
<img src=\"xml/xml.gif\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" />
%%
Now in handlers/page/revisions.php
%%(php) replace
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
with
if (!$this->config["rewrite_mode"]) {
$output .= "<td> <a href=\"".$this->href("show")."&time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
else
{
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
%%
There may be other broken links that depend on the rewrite rules (look on WakkaBugTracker), but I haven't found any others yet. With these modifications you can turn rewrite_mode on or off at will (remember to change the base_url too) and the stylesheets, xml icon, back-linking and revisions keep working.
You may also need to delete the .htaccess file on the /xml and /css directories.
actions/recentchanges.php need the same xml/xml.gif as actions/footer.php
Similarly in handlers/page/revisions.xml.php
%%(php) replace
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
with
if (!$this->config["rewrite_mode"]) {
$xml .= "<link>".$this->href("show")."&time=".urlencode($page["time"])."</link>\n";
}
else
{
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
}
%%
Revision [7687]
Edited on 2005-04-28 17:25:16 by JavaWoman [correction - point to new WakkaWiki URL]Additions:
""JoeD"" -- Joe Delaney -- http://www.wakkawiki.de/RewriteMode
Deletions:
Additions:
""JoeD"" -- Joe Delaney -- http://www.wakkawiki.com/RewriteMode