Knowledgebase
Handy Software Lab > Handy Software Lab Help Desk > Knowledgebase

Problem with Drupal's original .htaccess file and apache server-status

Solution

Q.

I have a problem with Drupal's original .htaccess file. If i put this file into my apache docroot ( / ) for clean URL-s, i cannot reach the apache statistic page (ExtendedStatus On). From localhost -> http://mydomain/server-status -> I get "page not found" message. If i remove .htaccess file, i can reach the page.

Suspected lines are:

# Rewrite current-style URLs of the form 'index.php q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php q=$1 [L,QSA]

If i uncomment these lines, my problem is gone.

 

A.

You should add a line about /server-status

# Rewrite current-style URLs of the form 'index.php q=x'.
RewriteCond %{REQUEST_URI} !=/server-status
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php q=$1 [L,QSA]
 
Was this article helpful? yes / no
Article details
Article ID: 189
Category: HSLAB HTTP Monitor
Date added: 2011-06-04 15:41:01
Views: 322
Rating (Votes): Article rated 3.0/5.0 (2)

 
<< Go back


© 2012 Handy Software Lab. All Rights Reserved.