Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite structure.

Status
Not open for further replies.

murphyhg

Technical User
Mar 1, 2006
98
0
0
US
I am totally new to Apache. I need to create a mod_rewrite which can handle anyfile.cfm?L1=25&L2=1&L3=4
and rewrite it to anyfile.cfm/L1-25/L2-1/L3-4
I picked this up off a blog.
RewriteRule ^/([A-Za-z0-9-]+)-([A-Za-z0-9-]+)/ /index.cfm?go=$1:$2 [PT,L]
However, I am not sure how to modify for the index.cfm file and the go. I would like to be able to apply this to any .cfm file and I do not need the go since I am not using a framework. I assume this will go in my Virtual host file which is seperate from my http.cong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top