
RewriteOptions inherit
## Uncomment these rules if you want to have nice URLs using
##$conf['userewrite'] = 1 - not needed for rewrite mode 2

RewriteEngine on
RewriteBase /
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
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

## 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.

#
## 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]

# RewriteCond %{HTTP_HOST} ^wiki\.streamscape\.com$
# RewriteCond %{HTTP_HOST} ^www\.wiki\.streamscape\.com$
# RewriteRule ^(.*)$ "https\:\/\/www\.wiki\.streamscape\.com\/$1" [R=301,L]

#RewriteCond %{HTTP_HOST} ^wiki\.streamscape\.com$ [OR]
#RewriteCond %{HTTP_HOST} ^www\.wiki\.streamscape\.com$
#RewriteRule ^/?$ "https\:\/\/www\.wiki\.streamscape\.com\/\$1" [R=301,L]

# php -- BEGIN cPanel-generated handler, do not edit
# RewriteCond %{HTTP_HOST} ^wiki\.streamscape\.com$
# RewriteRule ^/?$ "https\:\/\/www\.wiki\.streamscape\.com\/\$1" [R=301,L]

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !^/index.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
#RewriteRule (.*) index.php
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
