On 04/30/2010 10:42 AM, Scott Edwards wrote:
>> How would the rule look within the context of ~torriem?  Do I just have
>> to make the pattern include ~torriem/pagename.html?
> 
> With rewritebase.  try junk in the .htaccess to make sure it throws a
> 500.  This simple test will ensure your .htaccess is even being used.

Got it.  Thanks for the tip.  With this and a bit of reading Apache's
documentation, this is what I came up with:

RewriteEngine On
RewriteBase /~torriem/
RewriteRule ^blah$ wiki/blah [NC,R=301,L]
RewriteRule ^blah/.*$ wiki/blah [NC,R=301,L]

I did two rules depending on whether someone went to just blah, blah/ or
blah/index.html (depending on bookmarks, etc).

The speed at which my pages load seems to be acceptable.  I know
.htaccess was already operating because dokuwiki uses it to turn on
clean urls.

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to