ISPConfig web stats and Wordpress

Discussion in 'Installation/Configuration' started by arkkimus, Dec 20, 2012.

  1. arkkimus

    arkkimus New Member

    Hi

    I have problems accessing my website stats @ http://domain.tld/stats
    I can log in but after that i get Wordpress' 404 page.
    http://s12.postimage.org/6mlkagn6j/stats.png

    My .htaccess file:
    Code:
    ## Default .htaccess file
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    Wordpress is installed in root of web directory, that might be the reason? Because on another Wordpress site that is installed in web/wordpress directory stats work just fine.
    Whatever the reason might be, is there any way to fix this and make http://domain.tld/stats to work without breaking anything on Wordpress installation?

    Ubuntu 12.10 and ISPConfig 3.0.4 on Apache
     
    Last edited: Dec 20, 2012
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    It should work in that directory as well, I've installed all wordpress instances on my server there.

    Have you checked if there are any files in the stats directory?
     
  3. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Here is the solution for the above problem, add the lines:

    Code:
    RewriteCond %{REQUEST_URI} ^/(stats/|error/).* [NC]
    RewriteRule .* - [L]
    
    so that the resulting file looks like this:

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

Share This Page