[EMAIL PROTECTED] writes: | On Sun, 30 Jan 2005, Lars Gullik Bjønnes wrote: > >> Added two aliases: >> >> Alias /pub/ /home/lyx/www/pmwiki/pub/ >> Alias / /home/lyx/www/pmwiki/pmwiki.php/ >> >> And modified the $PubDirUrl in pmwiki.php from: >> >> $PubDirUrl = preg_replace("#/[^/]*\$#","/pub",$ScriptUrl,1); >> >> to >> >> $PubDirUrl = $ScriptUrl . "/pub"; >> >> Is it now working as you want it to? > | Not quite, uploaded files are inaccessible (Uwe mailed me about that) and | it's a bit inflexible for when deploying a test-version, which I'd like to | do before changing to pmwiki-2. > | Anyway, I surfed a bit in the pmwiki list and I think we'd be better of | using 'AliasMatch'. This should work: > | AliasMatch ^/([?A-Z].*) /home/lyx/www/pmwiki/pmwiki.php/$1
This did not work... (but I used it...) This is the aliases I ended up using: AliasMatch ^/([?A-Z].*) /home/lyx/www/pmwiki/pmwiki.php/$1 Alias /pub/ /home/lyx/www/pmwiki/pub/ Alias /uploads/ /home/lyx/www/pmwiki/uploads/ Alias /beta/ /home/lyx/www/pmwiki/beta/ Alias /pmwiki.php /home/lyx/www/pmwiki/pmwiki.php I also had to change pmwiki.php: //$ScriptUrl = 'http://'.$HTTP_SERVER_VARS['HTTP_HOST']; //$ScriptUrl .= $HTTP_SERVER_VARS['SCRIPT_NAME']; $ScriptUrl = ""; //$PubDirUrl = preg_replace("#/[^/]*\$#","/pub",$ScriptUrl,1); $PubDirUrl = "/pub"; local/upload.php: //SDV($UploadUrlFmt,preg_replace("#/[^/]*\$#","/$UploadDir",$ScriptUrl,1)); SDV($UploadUrlFmt, "/" . $UploadDir); Please tell me what doesn't work now. -- Lgb