<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 3, 2015 at 8:02 PM, Jont Allen <span dir="ltr"><<a href="mailto:jontalle@illinois.edu" target="_blank">jontalle@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It was necessary that I change the URL (and IP address) of my wiki. Now all the references seem to point at the old URL.<br>
For example, each of the files in<br>
/www/wiki/wiki.d/<br>
such as<br>
/www/wiki/wiki.d/Main.HomePage<br>
<br>
Is there some simple automatic way to change the old URL out, and replace it with the new URL?<br></blockquote><div><br></div><div>If you created links on your page using the [[Page]] or [[Group.Page]] markup then you should not have to make any changes besides correct configuration of pmwiki.</div><div><br></div><div>If you created links on your pages using the [[<a href="http://www.example.com/wiki/Main.HomePage">http://www.example.com/wiki/Main.HomePage</a>]] (note that I did not include "wiki.d" - that should never be part of the URL!) then you will need to edit any pages with a link like that if you change the URL location of your wiki. You can do this by editing the pages with vi or sed, as you mentioned, but then (I think) you'll have to delete your .pageindex file to make sure it gets updated. Or, if you use the wiki interface itself then the updating of your pageindex will happen automatically.</div><div><br></div><div>*OR* you could set up .htaccess to automatically redirect anything from <a href="http://www.xample.com/wiki/*">http://www.xample.com/wiki/*</a> to <a href="http://www.example.com/newwiki/*">http://www.example.com/newwiki/*</a></div><div><br></div><div>In any event, as you move forward I would recommend using the [[Page]] or [[Group.Page]] markup rather than putting in the whole URL - it lets pmwiki do what it does so well and avoids problems like this.</div><div><br></div><div>-Peter</div></div></div></div>