0 Comments

Using Mach II Dashboard with Mod Rewrite

By Kevin / Posted on 21 January 2012

I had an issue where I was creating vanity URL’s for an application.  The issue was that when we did this the Mach II Dashboard would no longer work.  Below is what we had in our Apache config file:

RewriteRule ^/([^/\.]+)$ /index.cfm?event=url&url_name=$1 [PT]

After a great deal of trial and error the solution (as usual) was very simple.  We just needed to create an exception in the rewrite rule so that it would ignore the Mach II Dashboard.  So, all that we added to our config file was:

RewriteCond %{REQUEST_URI} !^/MachIIDashboard$

…and voila.  Everything is now working.

Hopefully this can help someone and save them some time.

 

Categories

Apache, Coldfusion, Mach-II

 
 
 

Do you have something to say?