Search code examples
.htaccesscoldfusionapache2.2mura

index.cfm append with SES URL in MURA


Recently working with MURA CMS with RAILO on UBUNTU. I am installing MURA in inner folder of root directory.

public_html >> website.

Following code added in .htaccess to rewrite URL to run website without index.cfm and website directory.

Options +FollowSymLinks
RewriteEngine On 
DirectoryIndex index.cfm
RewriteRule ^$ /website/ [R]
RewriteCond  %{DOCUMENT_ROOT}%{REQUEST_URI}  !-d
RewriteRule ^website/([a-zA-Z0-9/-\s]+)$ /website/index.cfm/$1 [PT]

So my url http://example.com/website/privacy/ rewrite as http://example.com/website/index.cfm/privacy/ I think rewrite rule should work correctly as I have tried some online validator and giving me correct result but if run it into MURA it produce URL like http://example.com/website/index.cfm/privacy/index.cfm

I am not sure who is adding last index.cfm (apache or mura) and this take me to 404 page everytime.

Please help... this driving me crazy..

Thanks, Pritesh

UPDATE I have same site setup with windows/IIS 7 under subfolder of root and work fine though, if that help


Solution

  • Thanks Matt and Mael for spending time for this issue. Finally figure it out that TOMCAT was causing issue and adding index.cfm at the end.

    <url-pattern>/website/index.cfm/*</url-pattern>
    

    Add above URL pattern in web.xml file and it start working fine.