9, February 2010

problem with some rewrite and awstats - webmaster forum

 
Webdigity webmaster forums
[ 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 1630 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
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....

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?
Feb 09, 2010, 08:42:28 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!





Readers

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