[pmwiki-users] lots of problems when redirecting or rewriting URLs
Waylan Limberg
waylan at gmail.com
Thu Jan 19 12:06:57 CST 2006
On 1/19/06, DaveG <pmwiki at solidgone.com> wrote:
> The whole thing is pretty clear to me now! Based on the idea of moving
> .htaccess up to the root directory, I've now managed to get URL's:
> From: http://dom.com/~nepherim/pmwiki/Home/HomePage/
> To: http://dom.com/~nepherim/Main/HomePage
>
> I'm having a problem (URL not found) with Editing, Uploading, and
> History links (strangely Searching works fine).
>
> I used this .htaccess inside "http://dom.com/~nepherim/":
> Options +FollowSymLinks
> RewriteEngine on
> RewriteBase /~nepherim/
> RewriteCond %{QUERY_STRING} ^$
> RewriteRule ^([^/a-z].*) index.php?n=$1 [QSA,L]
>
> I put an index.php inside "http://dom.com/~nepherim/":
> <?php chdir('pmwiki'); include 'pmwiki.php';
>
> And I used these settings in config.php:
> $BaseUrl = 'http://'.$_SERVER[HTTP_HOST].'/~nepherim';
> $ScriptUrl = $BaseUrl;
> $PubDirUrl = $BaseUrl.'/pmwiki/pub';
> $ImgDirUrl = $ScriptUrl.'/pmwiki/img';
> $UploadUrlFmt = $BaseUrl.'/pmwiki/uploads';
>
>
> ~ ~ Dave
>
I see you got it. That is what I was trying to suggest. Sorry I wasn't clear.
--
----
Waylan Limberg
waylan at gmail.com
More information about the pmwiki-users
mailing list