Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
jennimckinnon / .htaccess
Created May 7, 2017 15:24
Default .htaccess file for subdomain installations of WordPress Multisite for versions 3.5+.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
@jennimckinnon
jennimckinnon / .htaccess
Created May 7, 2017 15:21
Default .htaccess file for sub-directory installations of WordPress Multisite for versions 3.5+.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
@jennimckinnon
jennimckinnon / .htaccess
Last active May 7, 2017 15:22
Default .htaccess file for a single installation of WordPress.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
define ('WPLANG', 'ar');
define ('WPLANG', 'es_CO');
define ('WPLANG', '');
allow_url_fopen = on
allow_url_fopen = off
define( 'WP_ALLOW_REPAIR', true );
ErrorDocument # /directory/your-error-file.php