GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need an .htaccess that will allow for wordpress to run smoothly with awstats (https://gfy.com/showthread.php?t=818554)

Angry Jew Cat - Banned for Life 03-30-2008 01:19 AM

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 03-30-2008 01:34 AM

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.

Angry Jew Cat - Banned for Life 03-30-2008 01:48 AM

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.

SayWhut 03-30-2008 01:57 AM

I reckon Analytics kicks the shit out of AWStats

Angry Jew Cat - Banned for Life 04-06-2008 11:21 PM

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

Angry Jew Cat - Banned for Life 04-07-2008 01:50 AM

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...

Angry Jew Cat - Banned for Life 04-07-2008 01:54 AM

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


Angry Jew Cat - Banned for Life 04-07-2008 02:12 AM

got it sorted

roly 04-07-2008 02:17 AM

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

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

CyberHustler 08-02-2008 01:49 AM

Quote:

Originally Posted by Angry Jew Cat (Post 14036212)
got it sorted

Care to share? I'm currently having the same issue.

Thanks.


Never mind. I guess it fixed itself somehow lol.

Antonio 08-02-2008 02:04 AM

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


d-null 08-02-2008 02:11 AM

Quote:

Originally Posted by SayWhut (Post 13997092)
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 :2 cents:

roly 08-02-2008 02:47 AM

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.

fris 08-02-2008 04:48 AM

awstats is the biggest reource hog

roly 08-02-2008 05:55 AM

Quote:

Originally Posted by fris (Post 14549774)
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.

TheDoc 08-02-2008 07:20 AM

Quote:

Originally Posted by SayWhut (Post 13997092)
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.


All times are GMT -7. The time now is 05:15 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123