Link to home
Start Free TrialLog in
Avatar of Dusty
DustyFlag for United States of America

asked on

Mod-Rewrite question

I want to hide file extensions and add a trailing slash to the url e.g. www.mysite.com/information.cfm
www.mysite.com/information/

My current htaccess looks like this:

Options +FollowSymLinks
RewriteEngine on
rewriteCond %{HTTP_HOST} ^mysite.com [NC]
rewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]
RewriteRule (.*)/(.*)-(.*)-(.*)-(.*)\.html$ /details.cfm?ListId=$1&StrNumber=$2&StrName=$3&Cty=$4
RewriteRule ^(.*)\.html$ $1.cfm [nc]

Need help figuring this out! any help appreciated!
Avatar of ddiazp
ddiazp
Flag of Canada image

are all your extentions the same? (.cfm)?
Avatar of Dusty

ASKER

yes they are all .cfm files
ASKER CERTIFIED SOLUTION
Avatar of ddiazp
ddiazp
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dusty

ASKER

Thanks!