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 Staff Member 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 Staff Member 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>
    
     
  4. trondhuso

    trondhuso Member

    I have installed wordpress in a subfolder as in web/wordpress. When I do domain.com/stats I get an 404 error. Is this due to the fact that the webserver now thinks it shall look for web/wordpress/stats and not web/stats?
    I kind of solved it by creating a symbolic link to the directory.

    Trond
     
    Last edited: Mar 18, 2021
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    yes
     
  6. trondhuso

    trondhuso Member

    Thanks. I solved this by creating a symlink
     

Share This Page