Re: htaccess help needed...
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
gabor wrote:
>># Assuming blog is your pyblosxom.cgi renamed
>>
>>
>hmmm, it is not...
>my bypblosxom.cgi is in /cgi-bin/pyblosxom.cgi
>
>can i simple replace blog with /cgi-bin/pyblosxom.cgi?
>
>
Maybe, I'm not sure unless I have the chance to try. Here's what you can
try:
* Change "blog" to "cgi-bin/pyblosxom.cgi" and test, unfortunately, may
not work, I believe.
* Move cgi-bin/pyblosxom.cgi to pyblosxom.cgi and don't forget your
config.py as well, then change "blog" to "pyblosxom.cgi" in the example
.htaccess
* If your webserver does not allow you to run scripts on the document
root, then add these lines:
<Files pyblosxom.cgi>
SetHandler cgi-script
</Files>
Of course the main web server configuration must allow you to override the files handler options (most hosting providers do)
* Setup a redirect script using php
* Use a server-side include with index.shtml that includes the output
of pyblosxom cgi
Of course for the last two steps, one must google it up :) I'm not sure
if the first option would work for you.
Looking at the second and third option, your .htaccess should look like:
---------------------
DirectoryIndex pyblosxom.cgi
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ pyblosxom.cgi/$1 [L,QSA]
<Files pyblosxom.cgi>
SetHandler cgi-script
</Files>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click