On Nov 20, 2007 9:20 AM, Benoit Dutilleul &lt;<a href="mailto:benoit.dutilleul@googlemail.com">benoit.dutilleul@googlemail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear pmwiki users,<br><br>I have managed to thinker one .htaccess to start doing what I wanted which is, in summary, to transform this URL:<div class="Ih2E3d"><br><span><a href="http://www.web-farm.org/wiki/fields/WiCo/index.php/Lokhim/Sustainability" target="_blank">

http://www.web-farm.org/wiki/fields/WiCo/index.php/Lokhim/Sustainability
</a> into<br><a href="http://www.lokhim.net/Sustainability" target="_blank">http://www.lokhim.net/Sustainability</a><br></span><br></div>Here was my rationale:<br>[1] First of all, I needed a directory to point my domain to and to put my .htaccess file. I chose to add a MultiDom/ folder in the WiCo field of my farm.
<br>[2] Then, since the group I want to point to is called Lokhim, I defined a Lokhim/ folder in MultiDom/<br>[3] In the folder <a href="http://www.web-farm.org/wiki/fields/WiCo/MultiDom/Lokhim/" target="_blank">http://www.web-farm.org/wiki/fields/WiCo/MultiDom/Lokhim/
</a>, I added the following .htaccess:<br><br># Use mod_rewrite to enable &quot;Clean URLs&quot; for a PmWiki installation.<br>RewriteEngine On<br># Define the rewrite base <br>RewriteBase /<br># Send requests without parameters to the relevant homepage
<br>RewriteRule ^$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /wiki/fields/WiCo/index.php?n=Lokhim.HomePage&nbsp; [L]<br># Send requests to pmwiki.php, appending the query string part.<br>RewriteRule ^([A-Z0-9\xa0-\xff].*)$ /wiki/fields/WiCo/index.php?n=$1&nbsp; [QSA,L]
<br><br>This works if you access the URL <a href="http://www.web-farm.org/wiki/fields/WiCo/MultiDom/Lokhim/" target="_blank">http://www.web-farm.org/wiki/fields/WiCo/MultiDom/Lokhim/</a><br>However, I set up the subdomain 
<a href="http://lokhim.web-farm.org" target="_blank">
lokhim.web-farm.org</a> to point to this folder and I get the following error: 
The requested URL /wiki/fields/WiCo/index.php was not found on this server.<br><br>Can someone help me to get the .htaccess to work with the subdomain?<br>Thanks a lot,<br><br>Benoit<br><br></blockquote><div><br>Hi Benoit!
<br><br>I&#39;m not an expert at&nbsp; url redirects, but I &#39;m pretty sure they only deal with the part of the url that follows the web domain, so you could get a rule to change&nbsp; <span><a href="http://www.web-farm.org/wiki/fields/WiCo/index.php/Lokhim/Sustainability" target="_blank">

http://www.web-farm.org/wiki/fields/WiCo/index.php/Lokhim/Sustainability
</a> into </span><span></span><a href="http://www.lokhim.net/Sustainability" target="_blank">http://www.web-farm.org/Sustainability</a> but not into<br><span><a href="http://www.lokhim.net/Sustainability" target="_blank">
http://www.lokhim.net/Sustainability</a>.&nbsp; Also it looks like some other problems in the way you set this up. But I&#39;ll let others weigh in on some of those issues. I just think you need to get an answer for this problem first.
<br><br>Cheers,<br>Dan<br></span></div></div>