Skip to content

Instantly share code, notes, and snippets.

@jhaus
Created March 21, 2011 21:55

Revisions

  1. jhaus revised this gist Mar 21, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /path/to/front/of/site/local_example_com/
    RewriteBase /path/to/front/of/site/under/root/directory/local_example_com/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
  2. jhaus created this gist Mar 21, 2011.
    11 changes: 11 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /path/to/front/of/site/local_example_com/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /path/to/front/of/site/under/root/directory/local_example_com/index.php [L]
    </IfModule>

    # END WordPress