New Message: Re: Creating and tracking a redirect
webmaster at userland.com
webmaster at userland.com
Wed May 4 09:10:23 PDT 2005
A new message was posted:
Address: http://manila.userland.com/discuss/msgReader$969
By: Thomas A. Creedon (thomas at creedon.net)
Hello Ben,
It been awhile since I've used it but you might look into redirect.root. If you can do some scripting, you could probably roll your own, there are several ways it could be done. Probably the pathEvaulation callback [1] would be the easiest.
Here is a pseudo script to get you started...
if string.lower (host) == "www.yourdomain.com" {
«this assumes you have created a table named "wwwYourdomainComPathRedirects" in the scratchpad table and defined a counter item for each path redirect you want to track.
local {
url = ""};
case string.lower (path) {
"/mypathone" {
scratchpad.wwwYourdomainComPathRedirects.mypathoneCt++;
url = "http://www.someOtherdomain.com/"}};
if url != "" {
scriptError ("!redirect " + url)}}
Toodle-loooooooo..........
Thomas
editHere.com [2] website hosting service. "Websites as easy as see it, edit it, save it! SM"
[1] http://frontier.userland.com/stories/storyReader$1896
[2] http://www.editHere.com/
This is a Manila site.. http://manila.userland.com/.
More information about the Frontier-Users
mailing list