1Options -Indexes
2DirectoryIndex index.php
3### BEGIN - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ###
4<IfModule mod_rewrite.c>
5RewriteEngine on
6
7# RewriteBase is set to "/" so rules do not need updating if the
8# installation directory is relocated.
9RewriteBase /
10
11# Redirect directories to an address with slash
12RewriteCond %{REQUEST_FILENAME} -d
13RewriteRule ^(.+[^/])$ $1/ [R]
14
15# Send all remaining (routable paths) through index.php
16RewriteCond %{REQUEST_FILENAME} !-f
17RewriteCond %{REQUEST_FILENAME} !-d
18# Determine and use the actual base
19RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
20RewriteRule ^.*$ %2index.php [QSA,L]
21</IfModule>
22### END - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ###