.htaccess problem with CMSmadesimple pretty URL and awstats

General project discussion. NOT for help questions.
Post Reply
gasemans
Forum Members
Forum Members
Posts: 41
Joined: Thu Jan 17, 2008 4:56 pm

.htaccess problem with CMSmadesimple pretty URL and awstats

Post 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
alby

Re: .htaccess problem with CMSmadesimple pretty URL and awstats

Post 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
Last edited by alby on Fri Feb 01, 2008 3:55 pm, edited 1 time in total.
gasemans
Forum Members
Forum Members
Posts: 41
Joined: Thu Jan 17, 2008 4:56 pm

Re: .htaccess problem with CMSmadesimple pretty URL and awstats

Post by gasemans »

same result as before
Post Reply

Return to “General Discussion”