Configuring .htaccess to ignore specific folders

Filed under: Installation

Q: After installing Vivvo I am no longer able to have folders within the domain that can be accessed. It gives an access denied or just wont pull it at all.

The Vivvo mod_rewrite is designed to "take over" a website in the belief that everything belongs to it. As a result, when running other software applications in subfolders (subdirectories) of a Vivvo root installation. your .htaccess file may rewrite those URL's to Vivvo, thus making them inaccessible and will return a "page not found" page in your Vivvo site. 

When Vivvo appears to take over your subdirectories, it actually takes over the pages where Apache would respond with a "Page not found" error anyway.

The trick is to modify .htaccess to ignore specific files/folders. So for example, if you have two folders, <folder1> and <folder2> in the root of your Vivvo installation, modify your .htaccess file by inserting the following code directly after the "RewriteEngine on" directive, before the Vivvo rewrites:

# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L]

For each folder you want to bypass, add a RewriteCond line, and end all but the final RewriteCond with [OR]. Note that the [L] in the rewrite rule tells it to stop there and bypass the rest of the rewrite rules.

.htaccess files are invisible!  If you don't see it, you'll need to disable your operating system's invisible file functions, or use a text editor that allows you to open hidden files, something like bbedit on the Mac platform. On windows, showing invisibles in explorer should allow any text editor to open them, and most decent editors to save them too. Linux dudes know how to find them without any help :)

Was this helpful?

Share on: Post on Facebook Facebook Add to your Digg this story Digg StumbleUpon StumbleUpon Twitter Twitter
Follow us on Twitter cron