ExpressionEngine and stats


#1

Hi!

I’m very new to DH and I like what I’m seeing so far.

Although I know a bit about HTML and CSS I know nothing about editing .htaccess files.

The problem is, that my ExpressionEngine installation isn’t giving me access to my stats section on the server. I also tried to add the lines from the knowledge base but it didn’t help.

This is how my .htaccess file looks so far (to get rid of the index.php in the urls):

RewriteEngine On
RewriteCond $1 !^(system|images|themes|index.php).*
RewriteRule ^([^/]+.*)$ index.php/$1 [NC,L]

I tried to add the “stats” directory to the list of directories you can see in the .htaccess but no way.

Has any EE user made this working?

Thanks!


#2

Which lines from the Knowledge Base did you try to add?

Did you try the following:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/stats/(.)$ [OR]
RewriteCond $1 !^(system|images|themes|index.php).

RewriteRule ^([^/]+.*)$ index.php/$1 [NC,L]

or maybe try:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^stats [OR]
RewriteCond %{REQUEST_URI} ^/stats [OR]
RewriteCond $1 !^(stats|system|images|themes|index.php).*
RewriteRule ^([^/]+.*)$ index.php/$1 [NC]


[color=#000000]DreamHost Promo Code[/color]: [color=#CC0000]Save $50[/color] with the promo code DREAMTEAM


#3

I added these two lines:

RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$

Your suggested version also don’t work.

Maybe I should ask in the EE forums, I’m sure there are some users hosted by DH.


#4

Good idea. Please post your solution here, if you find one…


[color=#000000]DreamHost Promo Code[/color]: [color=#CC0000]Save $50[/color] with the promo code DREAMTEAM


#5

These lines near the top (after the RewriteEngine on) should work:

RewriteCond %{REQUEST_URI} ^/stats/(.)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.
$ - [L]

That essentially tells it to skip requests for the stats altogether.

  • Dallas
  • DreamHost Head Honcho/Founder

#6

WTF? I could swear I tried this, too, but you are right, it’s working now!

Thanks!!!