This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Pass the original URL as a variable
Author
Message |
datacloud
Newbie


Joined: 06 January 2005
Location: United States
Posts: 12
Posted: 01 February 2012 at 7:50am

Is there a simple way to pass the original URL link as a variable

http://site.com/First-variable-Second-variable-v23.htm

RewriteRule ^/([A-Z][^A-Z]*)-([A-Z][^A-Z]*)([-][v][\d][\d])\.htm([\?]*)([^\.]*)$ /search.cfm\?S1=$1&S2=$2&V=$3&$5&OriginalLink=$# [L]

where &OriginalLink=$#
is
OriginalLink = First-variable-Second-variable-v23.htm

Thanks

Edited by datacloud - 01 February 2012 at 7:50am
Back to Top Visit datacloud's Homepage
 
datacloud
Newbie


Joined: 06 January 2005
Location: United States
Posts: 12
Posted: 01 February 2012 at 9:31am

using the variable CGI.HTTP_X_REWRITE_URL in my code does the trick.

Answered my own question...
Back to Top Visit datacloud's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version