-
2005-01-14
jcarroll
Using:
- Fedora Core 3
- Apache httpd-2.0.52-3.1
Initially uncommented lines in provided .htaccess file, which seemed to work initially. After poking around a bit (this is an initial install) I noticed that doku.php (and variations on that theme which include the trailing "id=") was once again displaying in the URL.
Double-checked .htaccess file. Eventually found the wiki:tips page, so added the line described as being necessary for Apache 2.0. Didn't help.
The only other things I can think that may have changed are that I enabled then disabled the AuthType Basic stanza in .htaccess, and modified conf/acl.auth.
Here's the current .htaccess file:
[root@tosfoljsl01 dokuwiki]# cat .htaccess
## Enable this to restrict editing to logged in users only
#<Files doku.php>
# <Limit POST>
# AuthType Basic
# AuthName "You need to login to post"
# AuthUserFile /var/www/html/dokuwiki/.htuser
# require valid-user
# </Limit>
#</Files>
## make sure nobody gets the passwords
<Files ~ "^\\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
## Comment these rules in if you want to have nice URLs
RewriteEngine on
RewriteBase /dokuwiki
RewriteRule ^$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
Here's the current conf/acl.conf file:
[root@tosfoljsl01 dokuwiki]# cat conf/acl.auth
# Access Control
#
# none 0
# read 1
# edit 2
# create 4
# upload 8
# grant 255 #not used yet
* @admin 255
* @user 8
* @ALL 1
-
2005-01-14
andi
I'm not sure if I understood correctly.
Do the links generated by dokuwiki contain doku.php?id=... or are they generated correct? If this is the problem make sure $conf['userewrite'] is enabled.
Or does Apache not rewrite the URLs correctly?
-
2005-01-14
jcarroll
The links did contain doku.php?id=... initially. Then after enabling the RewriteRules in .htaccess they were generated correctly. Then they stopped being generated correctly.
I just now checked $conf['userewrite'] and it wasn't enabled. :-( I swear I enabled it, but evidently I did not.
My apologies. I'm usually much more thorough than this. You can close this ticket.