#<IfModule mod_rewrite.c>
#RewriteEngine On
#RedirectMatch ^/$ /index/
#RewriteRule ^index\\.php$ - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /index.php [L]
#</IfModule>






RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule ^$ index/index.php

RewriteRule ^adventure/([a-z/-]+)(/)?$ adventure/index.php?category=$1
RewriteRule ^([a-z/-]+)/([a-z0-9/-]+)(/)?$ $1/index.php?url=$2
RewriteRule ^([a-z/-]+)(/)?$ $1/index.php

ErrorDocument 400 /html/error.php
ErrorDocument 401 /html/error.php
ErrorDocument 403 /html/error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /html/error.php
ErrorDocument 502 /html/error.php
