I am having some problems with the .htaccess file and would like your help.
I am on VPS hosting with CPanel and plan to create a lot of websites with CMSMS.
I would like to know if there is an .htaccess file that covers all that is needed for friendly urls and security that i can use in all my sites.
My existing .htaccess file has the following which i am not sure is correct (anafotia2012 is a folder of a CMSMS site under my public_html folder):
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteBase /anafotia2012/
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Thanks in advance