This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Excluding index.cfm in all urls
Author
Message |
dtnsemprog
Newbie


Joined: 10 March 2010
Location: United States
Posts: 19
Posted: 04 June 2010 at 10:49am

I am using this rule in order to exclude the \index.cfm from showing in the home page url:

RewriteRule ^index.cfm$ / [NC,NS,R=301]

So, if someone were to type in:

www.asite.com/index.cfm

they would be redirected to:

www.asite.com/

However, this rule does not seem to be working for all folders of the site.

Ex: if you go to
www.asite.com/afolder/index.cfm
or
www.asite.com/afolder/anotherfolder/index.cfm

the rule does remove the index.cfm

Does anyone know how I could modify this rule to make sure the index.cfm is removed for all the urls?

Thank you.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 07 June 2010 at 4:38am

Please fix your rule like this:

RewriteBase /
RewriteRule (.*)index\.cfm$ /$1 [NC,NS,R=301]

__________________
Regards,
Anton
Back to Top
 
dtnsemprog
Newbie


Joined: 10 March 2010
Location: United States
Posts: 19
Posted: 07 June 2010 at 11:55am

Worked great!

Thanks again, Anton.

Jon
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum