Options -MultiViews
DirectoryIndex index.php

#php_value display_errors On

AddCharset UTF-8 .html
#AddHandler application/x-httpd-php-5-cgi .php
#AddHandler x-httpd-php .php
#AddType text/html php


RewriteEngine On

RewriteBase /

RewriteRule ^section/(.*).html$ structure.php?section=$1 [L]

RewriteRule ^page/(.*).html$ pages.php?id=$1 [L]

RewriteRule ^testimonials/page-(.*).html$ guestbook.php?page=$1 [L]
RewriteRule ^testimonials/index.html$ guestbook.php [L]
RewriteRule ^testimonials/added.html$ guestbook.php?added=true [L]
RewriteRule ^testimonials/(.*).html$ guestbook.php?news=$1 [L]
RewriteRule ^testimonials/$ guestbook.php [L]
RewriteRule ^testimonials.html$ guestbook.php [L]

RewriteRule ^login.html$ members.php?login [L]
RewriteRule ^logout.html$ members.php?logout [L]
#RewriteRule ^recovery.html$ members.php?userpage [L]
#RewriteRule ^userpage.html$ members.php?userpage [L]
RewriteRule ^recovery.html$ structure.php?section=recovery [L]
RewriteRule ^userpage.html$ structure.php?section=userpage [L]


RewriteRule ^index.html$ index.php [L]
RewriteRule ^([A-Za-z0-9_-]+)/page-([0-9]+).html$ structure.php?section=$1&page=$2 [L]
RewriteRule ^([A-Za-z0-9_-]+)/order-([0-9]+).html$ structure.php?section=$1&order=$2 [L]
RewriteRule ^([A-Za-z0-9_-]+).html$ structure.php?section=$1 [L]
