[dokuwiki] Re: Clean URL's and media

  • From: Jeremy <stealth702@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 21 Oct 2005 17:15:28 -0400

That helped, but not completey.  I had to add
RewriteBase /wiki/

as pointed out here: http://wiki.splitbrain.org/wiki:tips:modrewrite
(which I miust have missed in my first search).  I noticed the info
about the media rules was NOT on that page, nor the notes on any other
the 'rewrite' pages.

And as a test, i just pulled the latest tgz and didn't notice a
.htaccess.dist file.  That might be in the dev version I guess.

Thanks for the pointers!

On 10/21/05, Alexandre Rossi <alexandre.rossi@xxxxxxxxx> wrote:
> Hi,
>
> > here's my .htaccess file:
> > --------
> > ## Comment these rules in if you want to have nice URLs
> > RewriteEngine on
> > RewriteRule ^$                        doku.php  [L]
> > RewriteCond %{REQUEST_FILENAME}       !-f
> > RewriteCond %{REQUEST_FILENAME}       !-d
> > RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
> > RewriteRule ^index.php$               doku.php
> > --------
>
> I had this problem. You are missing the new rewrite rules. See .htaccess.dist
> --------
> RewriteEngine on
> + RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
> + RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]
> RewriteRule ^$                        doku.php  [L]
> RewriteCond %{REQUEST_FILENAME}       !-f
> RewriteCond %{REQUEST_FILENAME}       !-d
> RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
> RewriteRule ^index.php$               doku.php
> ----------
> --
> DokuWiki mailing list - more info at
> http://wiki.splitbrain.org/wiki:mailinglist
>
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: