rbrouwer
if i try 192.168.1.49/D/administrator i get this page
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
192.168.1.49
10/21/10 14:22:27
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6
can you help me further ?
greetz riekele
turnermm
First, I would try this without the initial forward slash: ^/administration$
Then, if that still doesn't work, I'd leave off QSA, since you are not trying to capture a query string:
RewriteRule ^administration$ doku.php?id=login [L]
It might require the forward slash on the replacement part: /doku.php?id=login, but I don't think so
rbrouwer
Nothing work maybe i typ the url wrong?
the url of my wiki is 192.168.1.49/D
and than /administrator or something else ?
turnermm
You have to include administrator in the URL: 192.168.1.49/D/administrator
rbrouwer
no then i get still the object not found error
strange :S
rbrouwer
Hi,
i have a question if you use joomla and you wanna logon than you must type at the end of your link / administrator to come to the logon screen.
now is my question is this also possible with DokuWiki that is must type behind my link / administrator for example to login?
greetz Rbrouwer
chi
First, don't cross post (escpecially not after such a short time). Be patient, eventually someone will answer your question!
What you want is possible using some additional rewrite rules and .htaccess. Just redirect the request for /administrator to /doku.php?do=admin.
rbrouwer
i dont understand :$ what must i change in my .htacces ?
greetz Rbrouwer
chi
Try adding before the rule that catches (.*) - (untested):
RewriteRule ^/administration$ doku.php?id=login [QSA,L]
scarecrow
Just to make sure, that is not what is tripping you?
RewriteRule ^administration$ doku.php?id=login [L]
192.168.1.49/D/administrator
SCA
rbrouwer
## Enable this to restrict editing to logged in users only
## You should disable Indexes and MultiViews either here or in the
## global config. Symlinks maybe needed for URL rewriting.
#Options -Indexes -MultiViews +FollowSymLinks
## make sure nobody gets the htaccess files
<Files ~ "^[\._]ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
#RewriteEngine on
#
## Not all installations will require the following line. If you do,
## change "/dokuwiki" to the path to your dokuwiki directory relative
## to your document root.
#RewriteBase /dokuwiki
#
## If you enable DokuWikis XML-RPC interface, you should consider to
## restrict access to it over HTTPS only! Uncomment the following two
## rules if your server setup allows HTTPS.
#RewriteCond %{HTTPS} !=on
#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
#
#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
#RewriteRule ^$ doku.php [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^administration$ doku.php?id=login [L]
#RewriteRule (.*) doku.php?id=$1 [QSA,L]
#RewriteRule ^index.php$ doku.php
this is my .htacces it still doesnt work
chi
Okay, you didn't enable rewriting correctly. Please read
http://dokuwiki.org/rewrite and follow the steps.
rbrouwer
i dont understand what must i change in the file can you tell it so i can paste it in the document ?
greetz Rbrouwer
turnermm
This slipped by me before:
RewriteRule ^administration$ doku.php?id=login
Do you have a page called 'login'? What you want is
RewriteRule ^administration$ doku.php?do=login [L]
Then you enter the URL:
http://mysite.com/my_wiki_directory/administration
This should work; I tested it and it works for me.
chi
rbrouwer wrote
i dont understand what must i change in the file can you tell it so i can paste it in the document ?
greetz Rbrouwer
You didn't even enable rewriting. Read the docs. Then ask further questions.
rbrouwer
[SOLVED] Thnx for all who has helped me