Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Excluding index.cfm in all urls Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dtnsemprog
Newbie
Newbie


Joined: 10 March 2010
Location: United States
Online Status: Offline
Posts: 19
Posted: 04 June 2010 at 10:49am | IP Logged Quote dtnsemprog

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 View dtnsemprog's Profile Search for other posts by dtnsemprog
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 10489
Posted: 07 June 2010 at 4:38am | IP Logged Quote Anton

Please fix your rule like this:

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

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
dtnsemprog
Newbie
Newbie


Joined: 10 March 2010
Location: United States
Online Status: Offline
Posts: 19
Posted: 07 June 2010 at 11:55am | IP Logged Quote dtnsemprog

Worked great!

Thanks again, Anton.

Jon
Back to Top View dtnsemprog's Profile Search for other posts by dtnsemprog
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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