MindTouch Developer Center > MindTouch Deki > FAQ > Configuration > How do I...Exclude a Directory in mod rewrite rules?

How do I...Exclude a Directory in mod rewrite rules?

Table of contents
  1. 1. Edit mod_rewrite rules
    1. 1.1. Reload Apache

In some cases you may want to have another directory under your Deki Wiki DocumentRoot.  For example, let's say you want to make your photos available at:

http://wiki.example.org/photos

 

Edit mod_rewrite rules

Edit your Deki Wiki apache configuration (on Debian this is /etc/apache2/sites-available/deki).  Before or after this line:

RewriteCond %{REQUEST_URI} !/(@api|editor|skins|config|@gui)/

Add a line like this:

RewriteCond %{REQUEST_URI} !^/(photos|photos/.*)$

Reload Apache

/etc/init.d/apache2 reload

 

 

This will exclude the Deki Wiki rewrite rule for URI's like:

http://wiki.example.org/photos
http://wiki.example.org/photos/
http://wiki.example.org/photos/photo1.jpg


 

Tag page
You must login to post a comment.
Powered by MindTouch Deki Enterprise Edition v.8.08 RC2