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]
IMPORTANT: You must put the new rule in the correct position (just after the
RewriteRulewhich looks exactly like the one shown above) within the
.htaccessfile or it will not work!
- 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.
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 for further assistance.