Page 1 of 1

.htaccess problem with CMSmadesimple pretty URL and awstats

Posted: Fri Feb 01, 2008 2:47 pm
by gasemans
Good afternoon all

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
Options +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]
and her is the code of the awstats htaccess file
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
How to solf this issue?
any one who can help me with this

Re: .htaccess problem with CMSmadesimple pretty URL and awstats

Posted: Fri Feb 01, 2008 3:52 pm
by alby
gasemans wrote: 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
Try to disable mod_rewrite in htaccess of awstats folder:
RewriteEngine off

Alby

Re: .htaccess problem with CMSmadesimple pretty URL and awstats

Posted: Fri Feb 01, 2008 5:07 pm
by gasemans
same result as before