Skip to content

Instantly share code, notes, and snippets.

@paulschreiber
Created January 19, 2012 15:49
Show Gist options
  • Save paulschreiber/1640694 to your computer and use it in GitHub Desktop.
Save paulschreiber/1640694 to your computer and use it in GitHub Desktop.
WordPress multisite htaccess with rails apps
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_URI} ^/40under40 [OR]
RewriteCond %{REQUEST_URI} ^/donate [OR]
RewriteCond %{REQUEST_URI} ^/profiles [OR]
RewriteCond %{REQUEST_URI} ^/fundraisers [OR]
RewriteCond %{REQUEST_URI} ^/retreat [OR]
RewriteCond %{REQUEST_URI} ^/institute/
RewriteRule ^ - [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment