DirectoryIndex index.php index.html

<Limit GET PUT POST>
order allow,deny
allow from all
</Limit>

# deny most common except .php


#Disable .htaccess viewing from browser
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

<Files ~ "\config.php$">
deny from all
</Files>

# deny most common except .php \& is used if the name == option

RewriteEngine On
RewriteBase /
Options +FollowSymlinks

RewriteRule ^index.html                                               /index.php
RewriteRule ^section-([0-9]*)-([0-9]*).html                            /index.php?option=content\&task=section\&id=$2\&Itemid=$1
RewriteRule ^section-([0-9]*).html                                     /index.php?option=content\&task=section\&id=$1
RewriteRule ^category-([0-9]*)-([0-9]*).html                           /index.php?option=content\&task=category\&id=$2\&Itemid=$1
RewriteRule ^category-([0-9]*).html                                    /index.php?option=content\&task=category\&id=$1
RewriteRule ^pcontent-([0-9]*)-([0-9]*).html                           /index.php?option=content\&pcontent=2\&task=view\&id=$2\&Itemid=$1
RewriteRule ^article-([0-9]*)-([0-9]*)-([0-9]*).html                   /index.php?option=content\&task=view\&id=$3\&catid=$2\&Itemid=$1
RewriteRule ^article-([0-9]*)-([0-9]*).html                            /index.php?option=content\&task=view\&id=$2\&catid=$1
RewriteRule ^article-([0-9]*).html                                     /index.php?option=content\&task=view\&id=$1
RewriteRule ^submitnews.html                                          /index.php?option=content&task=new
RewriteRule ^archive-([0-9]*)-([0-9]*).html                           /index.php?option=content\&task=archive\&month=$2\&year=$1
RewriteRule ^archive.html                                             /index.php?option=content\&task=archive
RewriteRule ^weblinks.html                                            /index.php?option=weblinks
RewriteRule ^weblinks-([0-9]*).html                                    /index.php?option=weblinks\&catid=$1
RewriteRule ^visitlink-([0-9]*).html                                   /index.php?option=weblinks\&task=visit\&id=$1
RewriteRule ^submitlink.html                                          /index.php?option=weblinks&task=new
RewriteRule ^contact.html                                             /index.php?option=contact
RewriteRule ^search.html                                              /index.php?option=search
RewriteRule ^logout.html                                              /index.php?option=login&task=logout
RewriteRule ^login.html							/index.php?option=login
RewriteRule ^editinfo.html                                            /index.php?option=user
RewriteRule ^lostpassword.html                                        /index.php?option=registration&task=lostPassword
RewriteRule ^register.html                                            /index.php?option=registration&task=register
RewriteRule ^files.html							/index.php?option=downloads
RewriteRule ^files-([0-9]*)-([0-9]*).html				/index.php?option=downloads\&catid=$1\&Itemid=$2
RewriteRule ^files-([0-9]*).html					/index.php?option=downloads\&catid=$1\&Itemid=3
RewriteRule ^file-([0-9]*).html						/index.php?option=downloads\&task=download\&id=$1
RewriteRule ^sitemap.html						/index.php?option=sitemap
RewriteRule ^gb.html							/index.php?option=guestbook
RewriteRule ^faq-([0-9]*).html						/index.php?option=faq&Itemid=$1
RewriteRule ^faq-([0-9]*)-([0-9]*).html					/index.php?option=faq\&catid=$2\&Itemid=$1
RewriteRule ^faq-([0-9]*)-([0-9]*)-([0-9]*).html			/index.php?option=faq\&catid=$2\&Itemid=$1\&page=$3
RewriteRule ^article-([0-9]*)-comm.html					/index.php?option=content&task=view&id=$1
RewriteRule ^frontpage-([0-9]*)-([0-9]*).html				/index.php?option=frontpage&Itemid=$1&page=$2
RewriteRule ^polls-([0-9]*).html					/index.php?option=polls\&task=results\&pollid=$1
RewriteRule ^polls-([0-9]*)-([0-9]*).html				/index.php?option=polls\&task=results\&pollid=$1\&Itemid=$2



