Inconsistent trailing slash in DOCUMENT_ROOT variable in PHP when using Apache

It can be easily fixed by adding a trailing slash in the virtual host configuration:


    DocumentRoot /var/www/site1/public_html/

Leave a Comment

Your email address will not be published. Required fields are marked *