Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created November 19, 2011 20:28
Show Gist options
  • Select an option

  • Save cwarden/1379312 to your computer and use it in GitHub Desktop.

Select an option

Save cwarden/1379312 to your computer and use it in GitHub Desktop.
ThinkUp within WordPress docroot example
# In ThinkUp/webapp/config.inc.php, set the site_root_path:
# $THINKUP_CFG['site_root_path'] = '/thinkup/';
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# ThinkUp
RewriteRule ^thinkup$ /thinkup/ [L,R=301]
RewriteRule ^thinkup/(.*)$ /ThinkUp/webapp/$1 [L]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteRule wzk-(.*).htm$ wp-content/plugins/simple-forum/editors/tinymce/plugins/inlinepopups/skins/clearlooks2/img/style.css.php [L]
RewriteCond %{REQUEST_URI} !^/thinkup/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment