List Info

Thread: Blosxom blog as default page




Blosxom blog as default page
user name
2006-07-04 20:07:00


On Jul 4, 2006, at 1:03 PM, anthony.delorenzo wrote:
>
> I use mod_rewrite for this, in .htaccess in the root folder of my
> domain:
>
> RewriteEngine on
> RewriteCond %{REQUEST_FILENAME} !-f [NC]
> RewriteRule ^/?(.*)$ /path/to/blosxom.cgi/$1
>
> Basically, the condition checks to see if the path requested is an
> actual file. If so, it lets the request go through. This is for things
> like stylesheets, images or static pages. Then the actual rule passes
> everything else to blosxom.
>

I like the looks of this solution, but I am not familiar with
mod_rewrite. It seems to be just what I am trying to do.

1. I looked in my httpd.conf and found:
LoadModule rewrite_module libexec/httpd/mod_rewrite.so

So I assume that means it is being loaded when Apache starts up.
Is there anything else I need to do before creating the .htaccess
file like you showed?

2. If I put the .htaccess file in a subdirectory of my site, then it
will only apply to requests in the directory or below, correct?

3. What is the actual path to blosxom that is required? I get
confused between literal paths and paths relative to the webserver.
I have been working in Unix for many years, but I only dabble in this
web thing.
So blosxom is at: /library/webserver/CGI-Executables/blosxom.cgi (I
am running this on a Mac)
Is that the path that I should put in the rewrite rule?

I did actually try to implement the .htaccess file, but nothing
seemed to happen. Thus my questions.

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )