I have a question about the .htaccess files
I have cmsmadesimple with pretty URL's configured through the .htaccess file
We also have AWstats with a password on it.
the pretty url htaccess file is in the public_html folder
and the awstats htaccess file is in the public_html\awstats folder
Now the problem is that he always read the first .htaccess file he sees
and that is the htaccess file for the pretty URL's
now i am looking for a way to combine both htaccess files so that both work
I already searched the forum and found 1 solution
tried it but didnt work for me
Here is the code of the pretty url htaccess file
and her is the code of the awstats htaccess fileOptions +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
How to solf this issue?Options +ExecCGI
AddHandler cgi-script pl
DirectoryIndex awstats.pl
AuthUserFile /home/ywca/domains/ywca.nl/public_html/awstats/.htpasswd
AuthType Basic
AuthName "AwStats Protection"
require valid-user
any one who can help me with this