[dokuwiki] Re: getting rid of doku.php in the URL

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 20 Feb 2006 00:55:47 +0000

John Concilus wrote:

Not everyone has access to .htaccess files or if they do has access to mod_rewrite options through them. If you do, I'd use the .htaccess approach. The url's are nicer. If you don't .... ;)

Thanks, Chris.

So the "nicer" URLs would be more search engine friendly, or human friendly?

I can do httpd.conf one if I can find instructions. I don't see any in the manual.

I did find the .htaccess sample script.

It says "comment these rules in if you want nice URLs". Do you recommend that
you comment the "RewriteEngine" and "RewriteBase" variables if using the
.htaccess method in my case? And leave the others uncommented?


Remove the comments, it written a little oddly but "comment (these rules) in" means remove the comment #. An example .htaccess file is shown on the wiki:config#userewrite page. It is all set to go, you don't need to change any of the commenting. The one that ships with dokuwiki requires some of the commenting #s removed.

You may not need rewrite base. And if you do use it, you need to make sure the "/dokuwiki" is changed to be the url of the dokuwiki folder relative to your site root.

e.g. if you installed dokuwiki in the folder /dokuwiki then the .htaccess doesn't need changing.

if you installed it in the folder "/wiki" it will need changing to RewriteBase /wiki

Cheers,

Chris


-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: