Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.
Jan T. Sott edited this page Nov 3, 2015 · 15 revisions

Frequently Asked Questions

Why am I getting a 403 error when visiting the _public folder?

All files and folders inside _public are remapped, hence you should not point your browser to _public, but to its parent folder.

Why am I getting a 404 error when clicking a link?

You will likely have to specify RewriteBase. Open the .htaccess file in the root-dir, then uncomment the setting and put the directory name there.

If you run Bootstrap Listr in /html/files, this should be RewriteBase files/.

Why am I getting 404 errors on subfolders with nginx?

The .htaccess file is not supported with nginx. Here is a working nginx configuration:

server {
    root /var/www/books;

    location / {
        index index.php;
        # Below is the .htaccess equivalence
        if (!-e $request_filename) {
           rewrite ^(.+)$ /index.php?path=$1;
        }
    }

    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/run/php-fastcgi/php.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Why are there no Glyphicons displayed when using Bootswatch?

This likely happens when you are serving assets a CDN. Only the default Bootstrap theme is hosted with Glyphicons, for all other themes you must either server assets locally or use a different icon set.

Why are CDN-hosted assets not protocol-relative URLs?

“Now that SSL is encouraged for everyone and doesn’t have performance concerns, this technique is now an anti-pattern. If the asset you need is available on SSL, then always use the https:// asset.” —Paul Irish (via)

Clone this wiki locally