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 /wishlistnepal/error.php
ErrorDocument 401 /wishlistnepal/error.php
ErrorDocument 403 /wishlistnepal/error.php
ErrorDocument 404 /wishlistnepal/error.php
ErrorDocument 500 /wishlistnepal/error.php
ErrorDocument 502 /wishlistnepal/error.php