Re: htaccess help needed...
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
gabor wrote:
>www.myaddress.net should be the page where you can see the blog...
>
>the problem is that i tried to modify the RewriteRule, but it didn't
>help. can anyone tell me what RewriteRule i need? or maybe a different
>(simpler) way to achieve what i want..
>
have no idea how mod_rewrite works (call me ignorant :), but this works
the way you want it to:
You need DirectoryIndex to point to your pyblosxom.cgi so that it starts
that up automatically, at least that's what I believe it does :)
--------------------
# Assuming blog is your pyblosxom.cgi renamed
DirectoryIndex blog
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ blog/$1 [L,QSA]
<Files blog>
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