Mod Rewrite + Mach II Dashboard

15 views
Skip to first unread message

kwfricke

unread,
Jan 21, 2012, 10:18:45 AM1/21/12
to Mach-II for CFML
Question + Request for Advice
---------
I have an application which has profile pages for our members. I
want
to enable a vanity url so that we can have /membername and it will
then announce the event for the member profile page. I am doing this
by setting a rewrite rule like so:

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

Where the event 'url' is just executing a filter to announce the
appropriate event.

> First. Is this the best way to do this?

> Second. When I have the rewrite rule in the apache config the Mach II
Dashboard does not work anymore. I am getting the following error:

No matches found for pattern '/views/**/*.cfm' in module 'dashboard'.

How can I use this rewrite rule (if this is the best way to do this)
and also use the mach ii dashboard to reinit the base app?

kwfricke

unread,
Jan 21, 2012, 11:05:17 AM1/21/12
to Mach-II for CFML
OK. Figured it out. Maybe this will help someone else out.

http://www.sargas.com/2012/01/using-mach-ii-dashboard-with-mod-rewrite/
Reply all
Reply to author
Forward
0 new messages