This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze (Forum Locked Forum Locked)
 Helicon Tech : LinkFreeze
Subject Topic: Remove parameter names from URL.
Author
Message |
richdan
Newbie


Joined: 18 August 2010
Location: United Kingdom
Posts: 3
Posted: 18 August 2010 at 11:45am

I want to completely remove the parameter names from a URL.

I have a URL that looks like this:
Detailpage.asp?type=soul&county=surrey&town=guildford

I want it to look like this:
Detailpage.asp/soul-surrey-guildford

Is this achievable and how is it configured?

Back to Top Visit richdan's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 19 August 2010 at 5:11am

This is not possible with LinkFreeze as it can't skip URL parts as later it won't be able to build the original URL.
But you can use ISAPI_Rewrite 3 for this purpose. The config will look like this:

RewriteBase /
RewriteCond %{QUERY_STRING} ^type=(\w+)&county=(\w+)&town=(\w+)$ [NC]
RewriteRule ^Detailpage\.asp$ Detailpage.asp/%1-%2-%3? [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^Detailpage\.asp/(\w+)-(\w+)-(\w+)$ Detailpage.asp?type=$1&county=$2&town=$3 [NC,L]

__________________
Regards,
Anton
Back to Top
 
richdan
Newbie


Joined: 18 August 2010
Location: United Kingdom
Posts: 3
Posted: 19 August 2010 at 5:48am

Thanks Anton

OK, I can live with the parameter names remaining visible but I am not able to read the values from the querystring after it has been changed by LinkFreeze.

This is the URL created by LinkFreeze:
/regindexdynamic~type~wedding~area~manchester.asp

Then wqhen I try to read the type value using:
vartype = request.querystring("type")

No value is returned.

Can you please tell me how I can read the parameter values  from the querystring after it has been changed by LinkFreeze?


Back to Top Visit richdan's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 19 August 2010 at 8:39am

Thats rather strange because actually LinkFreeze transformations should be transparent for your script.
Please show your LinkFreeze config.
Confirm you haven't installed/setup ISAPI_Rewrite.
Tell what filters you have for your site.

__________________
Regards,
Anton
Back to Top
 
richdan
Newbie


Joined: 18 August 2010
Location: United Kingdom
Posts: 3
Posted: 19 August 2010 at 8:45am

Ignore my last post - problem solved
Sorry to waste your time
Back to Top Visit richdan's Homepage
 

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

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum