
RewriteOptions inherit

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

Options +SymLinksIfOwnerMatch

RewriteEngine on
RewriteBase /dokuwiki
#RewriteBase /
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
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
# Set the “ea-php74” package as the default “PHP” programming language.
#<IfModule mime_module>
#  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
#</IfModule>
# php -- END cPanel-generated handler, do not edit
