need assistance with rule
4 posts
• Page 1 of 1
- grannyklump
- Posts: 2
- Joined: 22 Apr 2014, 20:45
need assistance with rule
I am a ISAPI newb and need a little assistance.
I have this url format
website.com/index.cfm?PageTemplateName=pressurecooker
I would like to rewrite that url to:
website.com/pressure-cooker.cfm
Anyone mind helping me out?
Thanks
GK
I have this url format
website.com/index.cfm?PageTemplateName=pressurecooker
I would like to rewrite that url to:
website.com/pressure-cooker.cfm
Anyone mind helping me out?
Thanks
GK
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: need assistance with rule
Hello,
Here's an example how you can achieve this:
Regards
Here's an example how you can achieve this:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^PageTemplateName=pressurecooker$ [NC]
RewriteRule ^index\.cfm$ /pressure-cooker.cfm? [NC,R=301,L]
RewriteRule ^pressure-cooker\.cfm$ /index.cfm?PageTemplateName=pressurecooker [NC]
Regards
- grannyklump
- Posts: 2
- Joined: 22 Apr 2014, 20:45
Re: need assistance with rule
Worked like a champ. Thank you very much!
- DwightJefs
- Posts: 1
- Joined: 01 May 2014, 05:05
- Location: Россия
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests