Adding trailing slashes to short URL's

45 views
Skip to first unread message

Tim Bugler

unread,
Jul 1, 2015, 4:34:32 AM7/1/15
to urlre...@googlegroups.com
Hi,

I'm running Lucee (Railo) behind Apache (2.4) as well as using mod_cfml. I have managed to get all of the pieces working with one final issue. I need to set up a number of rules for short/vanity urls. The rules work as long as the user adds a trailing slash, without the slash results in a tomcat 404.
Presently I only have two rules.

<urlrewrite>
<rule>
        <note>Makes all requests forward to /index.cfm/whatever-came-next
        Ignores admin URLs so the admin still works correctly for Mura.</note>
        <from>/forward</from>
        <to>/index.cfm/top-level/second-level/</to>
    </rule>
    <rule>
        <note>Makes all requests forward to /index.cfm/whatever-came-next
        Ignores admin URLs so the admin still works correctly for Mura.</note>
        <from>^/(?!admin|plugins|js|css|assets|images|tasks|railo-context|flex2gateway|wysiwyg)(.*)$</from>
        <to>/index.cfm/$1</to>
    </rule>
</urlrewrite>

Note that /forward is not an existing directory or file

Any help would be hugely appreciated!

T.
Reply all
Reply to author
Forward
0 new messages