Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Rewriting issue
Avatar
katkota #1
Member since Mar 2010 · 14 posts
Group memberships: Members
Show profile · Link to this post
Subject: Rewriting issue
Hello folks;
i'm having issue using the rewriting rule on my dokuwiki installation. I'm trying to change this ugly link "http://isd-imdserver/dokuwiki/doku.php/start" to something friendly like "imdwiki" so users can remember easy.
I want users to be able to type "imdwiki" in their browser and that leads them to the full link.
I followed the instructions in the rewriting and changed the Nice URL to use ".htaccess" and also edited the ".htaccess" and edited "/conf/local.php" to make the rewrite rule 2 per instructions but i'm still couldn't get it to work when i type "http://imdwiki" in the browser.

My dokuwiki folder is this: /var/www/html/dokuwiki
I created a soft link to the dokuwiki folder above to imdwiki

Any help with this would be great.

Here's my ".htaccess":

## 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, README, COPYING or VERSION files
<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
    <IfModule mod_authz_host>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_host>
        Order allow,deny
        Deny from all
    </IfModule>
</Files>

## Don't allow access to git directories
<IfModule alias_module>
    RedirectMatch 404 /\.git
</IfModule>

## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
RewriteEngine on
RewriteBase /imdwiki
#
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 (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php
#
## 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]
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-05-20, 13:56:02 (UTC +02:00)