[HCoop-Help] [RE: [HCoop-Announce] .htaccess being disabled on mire]

Lauren McNees lauren at hcoop.net
Tue Feb 26 16:47:37 EST 2008


Thank you, this is helping me to understand how it should look.

But I thought that if I'm only running wordpress, I should use the
wordPress directive, not the addWordPress one. If that's true, I'm
guessing it would look like this:

  dom "rosasharn.com" where
      DocumentRoot = home "wordpress";
  with
      testNoHtaccess;
      wordPress "wordpress"
      end
  end

But this is almost exactly how it already is, except for the line that
says textHoHtaccess;. Does that line alone tell it to do my URL rewrites?

Thank you...

> On Tue, Feb 26, 2008 at 2:56 AM, Paul Kuliniewicz
> <paul.kuliniewicz at gmail.com> wrote:
>>  If you don't want to use the wordPress or addWordPress directives for
>>  whatever reason, you can more or less directly translate those rules
>>  into Domtool directives.  Here's what I did for my site (where
>> WordPress
>>  is at /blog instead of /, but otherwise the same as your situation):
>>
>>  dom "kuliniewicz.org" with
>>         web "www" with
>>                 directory (home "public_html/blog/") with
>>                         testNoHtaccess;          (* ignore any .htaccess
>> files *)
>>                         rewriteBase "/blog/";
>>                         rewriteCond "${REQUEST_FILENAME}" "!-f" [];
>>                         rewriteCond "${REQUEST_FILENAME}" "!-d" [];
>>                         rewriteRule "." "/blog/index.php" [last];
>>                 end;
>>         end;
>>  end;
>
> In this case there is actually no reason to not use addWordPress. It
> is _exactly_ equivalent to:
>
>   dom "kuliniewicz.org" with
>     web "www"
>       testNoHtaccess;
>       addWordPress "/blog/"
>     end
>   end
>
> However dom already specifies a "www", so this is slightly broken too.
>
> You should actually express it like this:
>
>   dom "kuliniewicz.org" where
>     WWW = begin
>       testNoHtaccess;
>       addWordPress "/blog/"
>     end
>   with end
>
> _______________________________________________
> HCoop-Help mailing list
> HCoop-Help at lists.hcoop.net
> https://lists.hcoop.net/listinfo/hcoop-help
>



_______________________________________________
HCoop-Help mailing list
HCoop-Help at lists.hcoop.net
https://lists.hcoop.net/listinfo/hcoop-help




More information about the HCoop-Help mailing list