<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 12:23 PM, Sameer Kumar <span dir="ltr">&lt;<a href="mailto:sameerkumar@gmail.com">sameerkumar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div><div></div><div class="h5">On Thu, Apr 9, 2009 at 12:25 PM, Moni Kellermann <span dir="ltr">&lt;<a href="mailto:kellerfrau@gmail.com" target="_blank">kellerfrau@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wie Sameer Kumar so vortrefflich formulierte:<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Peter et al,<br>
<br>
I followed your advise above with the XAMPP and a mirror setup of the wiki<br>
on my laptop. I got XAMPP working alright and I can even get to the homepage<br>
of the wiki. However, the page is unformatted and none of the links in the<br>
wiki work...<br>
<br>
This is exactly what I have added to my local config file (my wiki folder is<br>
located at C:\xampp\htdocs\wiki, which is also the documentroot for apache):<br>
<br>
if ($_SERVER[&#39;SERVER_ADDR&#39;] == &quot;127.0.0.1&quot;){<br>
 $ScriptUrl = &#39;<a href="http://localhost/" target="_blank">http://localhost/</a>&#39;;<br>
 $PubDirUrl = &#39;<a href="http://localhost/pub" target="_blank">http://localhost/pub</a>&#39;;<br>
# $EnablePathInfo=0;<br>
}<br>
else {<br>
$ScriptUrl = &#39;<a href="http://wiki.kumarsingh.com" target="_blank">http://wiki.kumarsingh.com</a>&#39;;<br>
$PubDirUrl = &#39;<a href="http://wiki.kumarsingh.com/pub" target="_blank">http://wiki.kumarsingh.com/pub</a>&#39;;<br>
}<br>
</blockquote>
<br></div>
Hi, Sameer,<br>
<br>
I have been using XAMPPlite for quite a while now to work offline on a wiki site and then transfer the whole thing online via FTP.<br>
<br>
So far I have NOT used any modification in the config file, i.e. NONE of the above. I have also NOT set $ScriptUrl or $PubDirUrl. I only set $EnablePathInfo = 1.<br>
<br>
I simply copy the whole folder to htdocs\ and that&#39;s it. I have never experienced any problems with the paths.<br>
<br>
Have you tried NOT to modify config.php?<br>
<br>
<br>
Kind regards,<br>
moni k.</blockquote><div><br></div></div></div><div>I have so far not tried what you suggest. I will do so tonight. Thank you very much for the suggestion.</div><div>Sameer </div></div><font color="#888888"><br>
</font></blockquote></div>Moni,<div>I tried not modifying config.php but it did not work. I got to the home page of the wiki but all the links on the homepage were resolving to my web address, not the localhost address. Is that not your experience? I wonder what was different in my case...</div>

<div>I eventually made it work using Petko&#39;s suggestion:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="border-collapse: collapse; ">if ($_SERVER[&#39;SERVER_ADDR&#39;] != &quot;127.0.0.1&quot;) # only NOT at home</span><br>

<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); ">{</span><br><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); ">  $ScriptUrl = &#39;<a href="http://wiki.kumarsingh.com" target="_blank" style="color: rgb(66, 99, 171); ">http://wiki.kumarsingh.com</a>&#39;;</span><br>

<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); ">  $PubDirUrl = &#39;<a href="http://wiki.kumarsingh.com/pub" target="_blank" style="color: rgb(66, 99, 171); ">http://wiki.kumarsingh.com/pub</a>&#39;;</span><br>

<span class="Apple-style-span" style="border-collapse: collapse; ">  $EnablePathInfo=1;</span><br><span class="Apple-style-span" style="border-collapse: collapse; ">}</span></blockquote><div><br></div><div>Thank you everybody for the help!</div>

<div>Sameer</div>