#-------------------------------------------------#
#                                                 #
#        ASTANDA DIRECTORY PROJECT  [ADP]         #
#                  Version 1.3b                   #
#               License: SHAREWARE                #
#             http:#www.astanda.com               #
#       Copyright 2005, 2006, Pavel Golovko      #
#                                                 #
#-------------------------------------------------#
#                                                 #
# Any attempt to remove or alter "Powered by ADP" #
# recip link will automatically wave your rights  #
# to any use of ADP software!                     #
#                                                 #
# Reverse engineering and redistribution of       #
# ADP code or any part of its code is strictly    #
# prohibited!                                     #
#                                                 #
#-------------------------------------------------#
#                                                 #
# ADP is distributed in the hope that it will be  #
# useful, but WITHOUT ANY WARRANTY; without even  #
# the implied warranty of MERCHANTABILITY or      #
# FITNESS FOR A PARTICULAR PURPOSE.               #
#                                                 #
#-------------------------------------------------#

# enable mod_rewrite
RewriteEngine on

RewriteRule ^demo$ demo$1 [QSA,L]

RewriteRule ^(.*)/$ index.php?path=$1 [QSA,L]
RewriteRule ^(.*)/index.html$ index.php?path=$1 [QSA,L]
RewriteRule ^/$ index.php [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?path=$1&page=$2 [QSA,L]
RewriteRule ^index.html$ index.php [QSA,L]

