Support » Plugin: W3 Total Cache » Apache Alias support problem with Path string

  • W3TC Will install correctly; e.g. install wp-config.php changes as well as place dropins into the wp-content folder however it will fail to write to .htaccess if the alias path does not match the file path ; note the server configured documentroot is a different path on the same folder level as the aliases.

    For proof I created a new installation of wordpress and modified the path in the alias.

    ServerName http://www.testalias.com
    Alias /testalias /var/www/ta
    DocumentRoot /var/www/testaliasroot
    <Directory /var/www/ta >
    Options +ExecCGI +FollowSymLinks +MultiViews
    AllowOverride all
    Order allow,deny
    allow from all
    </Directory>

    If the wordpress installation is uses Alias /testalias /var/www/testalias and the wordpress is installed in /var/www/testalias then the w3tc find the .htaccess file and works as expected.

    if the wordpress installation uses Alias /testalias /var/www/ta and the worpress installation is in /var/www/ta then the .htaccess file will be incorrectly reported.

    There is a patch I have pointed to before https://wordpress.org/support/topic/pull-request-add-support-for-apache-alias?replies=2

    Which suggests that the code needs to be caught up with Apache Aliases.

    https://wordpress.org/plugins/w3-total-cache/

  • The topic ‘Apache Alias support problem with Path string’ is closed to new replies.