9, July 2008

problem with some rewrite and awstats - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: problem with some rewrite and awstats
« previous next »
Pages: [1] Print

Author Topic: problem with some rewrite and awstats  (Read 737 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« on: Jul 14, 2007, 10:25:20 AM »

Hi,

I have on some sites this rule for non existing files/directories:

Code:
RewriteEngine On


RewriteCond %{REQUEST_URI} !^/awstats
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule (.*) http://www.domain.com/ [R=301,L]

this is not working because the folder "awstats" is password protected

what do I need to change? this happens to all wordpress blogs I guess


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7946
40629 credits
Members referred : 3



« Reply #1 on: Jul 14, 2007, 02:57:03 PM »

Awstats is a real directory in your site, or a link from Apache?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jul 14, 2007, 08:30:19 PM »

Awstats is a real directory in your site, or a link from Apache?

a real directory


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7946
40629 credits
Members referred : 3



« Reply #3 on: Jul 14, 2007, 09:01:41 PM »

Why don't you puy an .htaccess in that directory?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Jul 14, 2007, 09:13:16 PM »

inside the awstats directory is a htaccess file.

if I'm logged in the rule works, I guess the condition is a test for a 404


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7946
40629 credits
Members referred : 3



« Reply #5 on: Jul 14, 2007, 09:37:06 PM »

Yes, what you wrote is in case a file does not exists

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jul 14, 2007, 09:54:41 PM »

Yes, what you wrote is in case a file does not exists
yes right even if I try to access the awstats script directly its would be redirected


Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6908
Tags : mod_rewrite awstats Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: problem with some rewrite and awstats
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 09, 2008, 03:43:57 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.594
Total Topics: 7.356
Total Members: 3.662
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: seo_mike

23 Guests, 3 Users online :

18 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.