Dusty
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&Str Number=$2& StrName=$3 &Cty=$4
RewriteRule ^(.*)\.html$ $1.cfm [nc]
Need help figuring this out! any help appreciated!
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 (.*)/(.*)-(.*)-(.*)-(.*)\.
RewriteRule ^(.*)\.html$ $1.cfm [nc]
Need help figuring this out! any help appreciated!
are all your extentions the same? (.cfm)?
ASKER
yes they are all .cfm files
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!