This page is part of the Troubleshooting documentation.
CSS: Apache Directive
Thesis 2.1+, when used with WordPress Multisite, requires a special Apache Directive in the
.htaccess file. This additional directive allows for cleaner output on the front end and also makes Multisite CSS more compatible with some caching plugins.
To add the Apache Directive, follow these simple steps:
- Open your
.htaccessfile located in the WordPress root.
- Find the following in the
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L]
- Add the following line (in green) to your
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule wp-content/thesis/skins/(.*)/css.css wp-admin/admin-post.php?action=thesis_do_css
- Save the file. If you’re running caching plugins or caching software, be sure to empty/flush your cache.
It is important that you put the above rule in the correct position within the
.htaccess file or it will not work.
If you are running a caching plugin, there may be tens or hundreds of lines of Apache Directives. In this case, you may need to contact your hosting company/sysadmin.