Technology TidBits

Answers to various technical questions on php programming, mysql, linux, and many more categories.
25% off Hosting at HostGator.com:
Use Code techbits25



How can I set up a separate directory and have Wordpress ignore it?

Last updated: 02/08/2012

The Wordpress htaccess file rewrites URL's to be seo friendly, but sometimes you might want to exempt a directory from any rewrites.  Add the highlighted line in the htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /articles
RewriteCond % !-f
RewriteCond % !-d
rewriteCond % !^/directory1.*
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

 

blog comments powered by Disqus
Have your own Tech-bit to contribute? Submit it here

Other questions in this category:
How can I try out a new theme without making it live on my WordPress blog?
How can I display editable content on my blog sidebar?
How can I update my wordpress database when I change my domain / site name?
How can I upgrade to the latest version of wordpress?



Powered by KnowledgebasePublisher 1.1
Host Gator
Content provided by Roberts WebForge, Inc.