need an .htaccess that will allow for wordpress to run smoothly with awstats

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Angry Jew Cat - Banned for Life
    (felis madjewicus)
    • Jul 2006
    • 20368

    #1

    need an .htaccess that will allow for wordpress to run smoothly with awstats

    ok, apparently i'm having some issues with my .htaccess not working smoothly to allow for both wordpress to run properly and to view my awstats properly at the same time. My host's tech support rewrote me a .htaccess file, but the new .htaccess they did for me kills my feeds and permalink structure to allow awstats to view properly. Anyone got something that'll work for me? I'd appreciate it.
  • moeloubani
    Confirmed User
    • Dec 2007
    • 4235

    #2
    You can disable Permalinks, there are some awesome traffic plugins for Wordpress and theres always Google Analytics, sometimes I'll disable permalinks for a quick peek at my stats that way but the results are the same that I get from plugins/Google.

    Comment

    • Angry Jew Cat - Banned for Life
      (felis madjewicus)
      • Jul 2006
      • 20368

      #3
      i like awstats though, and i don't feel like turning off permalinks just to view my stats. surely there is a .htaccess rewrite out there that will do the trick.

      Comment

      • SayWhut
        Confirmed User
        • Jan 2008
        • 962

        #4
        I reckon Analytics kicks the shit out of AWStats

        Comment

        • Angry Jew Cat - Banned for Life
          (felis madjewicus)
          • Jul 2006
          • 20368

          #5
          reckon what you all will, i still needs to find an .htaccess rewrite that works for wordpress and awstats simultaneously. anyone?

          Comment

          • Angry Jew Cat - Banned for Life
            (felis madjewicus)
            • Jul 2006
            • 20368

            #6
            bumpage, i need a decent .htac cess that can make my dreams come true. someone please help a brotha out here. shit is driving me batshit insane...

            Comment

            • Angry Jew Cat - Banned for Life
              (felis madjewicus)
              • Jul 2006
              • 20368

              #7
              i tried the following but it doesn't seem to do shit when i try to view domain.com/awstats . it takes em to the 404 page

              Code:
              # BEGIN WordPress
              
              RewriteEngine On
              RewriteBase /
              RewriteCond %{REQUEST_URI} !^/awstats.*$ [NC] [L]
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule . /index.php [L]
              
              # END WordPress

              Comment

              • Angry Jew Cat - Banned for Life
                (felis madjewicus)
                • Jul 2006
                • 20368

                #8
                got it sorted

                Comment

                • roly
                  Confirmed User
                  • Aug 2002
                  • 1844

                  #9
                  i have awstats in a folder called awstats, and i use this in my htaccess

                  RewriteCond %{REQUEST_URI} ^/awstats/
                  RewriteRule .* - [L]

                  Comment

                  • CyberHustler
                    Masterbaiter
                    • Feb 2006
                    • 28743

                    #10
                    Originally posted by Angry Jew Cat
                    got it sorted
                    Care to share? I'm currently having the same issue.

                    Thanks.


                    Never mind. I guess it fixed itself somehow lol.
                    Last edited by CyberHustler; 08-02-2008, 12:52 AM.
                    “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

                    Comment

                    • Antonio
                      Too lazy to set a custom title
                      • Oct 2001
                      • 14136

                      #11
                      try this one, I know I did it on two of my sites but I'm not sure that this is the one I used, back up your old one and try this one


                      Code:
                      <IfModule mod_rewrite.c>
                      RewriteEngine On
                      RewriteBase /
                      RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
                      RewriteRule . - [L]
                      </IfModule> 
                      # BEGIN WordPress
                      <IfModule mod_rewrite.c>
                      RewriteEngine On
                      RewriteBase /
                      RewriteCond %{REQUEST_FILENAME} !-f
                      RewriteCond %{REQUEST_FILENAME} !-d
                      RewriteRule . /index.php [L]
                      </IfModule>
                      
                      # END WordPress

                      Comment

                      • d-null
                        . . .
                        • Apr 2007
                        • 13724

                        #12
                        Originally posted by SayWhut
                        I reckon Analytics kicks the shit out of AWStats
                        interested to hear your solution AJC

                        and I reckon that Google Analytics spyware is the last thing a person should use

                        __________________

                        Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                        Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                        Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                        Comment

                        • roly
                          Confirmed User
                          • Aug 2002
                          • 1844

                          #13
                          to all you guys having a problem with this, i did have it working and then it syopped when i recently upgraded apache an i couldn't figure out why. the reason was that my default 401 error page had changed in httpd.conf and i was getting a conflict with the password protected awstats folder, it was driving me nuts until i found the solution. for anyone who can't get it to work add a 401 error page to your html folder and the following line to your htaccess

                          ErrorDocument 401 /401.shtml

                          so my working htaccess file is now

                          Code:
                          Options +FollowSymLinks 
                          ErrorDocument 401 /401.shtml 
                          
                          <IfModule mod_rewrite.c> 
                            RewriteEngine On 
                          
                            RewriteRule ^awstats(/.*)?$ - [L] 
                          
                            # BEGIN WordPress 
                            RewriteCond &#37;{SCRIPT_FILENAME} !-f 
                            RewriteCond %{SCRIPT_FILENAME} !-d 
                            RewriteRule . /index.php [L] 
                            # END WordPress 
                          </IfModule>
                          it may look like a stupid solution but if you can't get it to work on your server give this a try.

                          Comment

                          • fris
                            Too lazy to set a custom title
                            • Aug 2002
                            • 55682

                            #14
                            awstats is the biggest reource hog
                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                            Comment

                            • roly
                              Confirmed User
                              • Aug 2002
                              • 1844

                              #15
                              Originally posted by fris
                              awstats is the biggest reource hog

                              i thought it was just log analysis software? it only uses resources when you update it manually or once a day with cron when it updates.

                              Comment

                              • TheDoc
                                Too lazy to set a custom title
                                • Jul 2001
                                • 13827

                                #16
                                Originally posted by SayWhut
                                I reckon Analytics kicks the shit out of AWStats
                                Overall analytics, tracks more 'things' and lets you view them in a pretty way. AWStats uses your server logs, and tracks far more traffic totals, errors, referrals, ect.. than analytics ever could.
                                ~TheDoc - ICQ7765825
                                It's all disambiguation

                                Comment

                                Working...