Forum Discussion
3 Replies
Sort By
- Urv_165706Nimbostratusnot sure it will work or not When HTTP_RESPONSE { If { ( [HTTP::URI] starts_with “/store/category/”) } { HTTP::header insert “location=category” } }
- Kevin_Davies_40Nacreous
if {[HTTP::uri] starts_with /store/} { if {[HTTP::query] eq ""} { set sep "?" } else { set sep "&" } HTTP::uri "[HTTP::uri]${sep}location=[getfield [HTTP::uri] {/} 3]" }
/store/category/ becomes..
/store/category/?location=category
/store/joe/?value=2 becomes...
/store/joe/?value=2&location=joe
- Kevin_Davies_40NacreousIf this answer has help solve your problem, please tick the left of the post. Thanks.