Actually Bret, I've given that code all a try and it works a treat,
thanks so much!  :-)  And fixed the back button issue too!


-----Original Message-----
From: bret [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 23:30
To: CF-Talk
Subject: Re: Reroute problem and "Google Search Me Please!"


Hey Stuart-

Why not do a cfswitch based on the CGI.SERVER_NAME variable? That way
it's on the server side and not dependent on _javascript_. In addition,
you don't have to deal with the back button madness if you CFINCLUDE the

pages you wish to act as the homepages instead of redirecting to them. I

do this on my server with several FB3 apps and it works quite well.

As for Google, it could be the redirects that are throwing it off.

HTH,

-Bret

Stuart Kidd wrote:

> Hi guys,
>
>
> I have a whole bunch of sites pointed at my domain which is hosted on
a
> server in the good ol' USA.
>
>
> I have this _javascript_ which is below:
>
>
> <script>
> //  Script prepared by KNF & Associates  http://www.knfa.net
> //  If you use this script please keep these two lines intact.
> function isValidURL(myPointer) {
>         return (myPointer > 0  &&  myPointer < 12);
> }
>
>
> if (isValidURL(document.URL.indexOf("www.0171.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("0171.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("020.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("www.020.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("stuartkidd.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("www.stuartkidd.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("www.smsguestlist.com")))
>         location.href = ""> > if (isValidURL(document.URL.indexOf("www.totalhouses.com")))
>         location.href = ""> > </script>
>
>
> It's a basic script that I got from the url which is in the code.
> Anyhow. it has a few problems. first is that it's a _javascript_ and
some
> people block that.  Secondly if you look at one of the pages, for
> instance. http://www.smsguestlist.com <http://www.smsguestlist.com/>
> and you press the back button and bang, it doesn't actually go back to
> the user's previous page it'll take them back to the above index.cfm
> script which will then take them to the redirected page.
>
>
> That's my first problem my second is that my pages don't seem to be
> getting indexed by google.com, shouldn't google search .cfm files
> nowadays?  Wasn't there a script or something that can fix this
problem?
> I thought by now my stuartkidd.com would be on google, at least my
full
> name (it's in my title tag).  And I have got some first page results
on
> google.com for my 0171.com website which is .html extensions and links
> to my stuartkidd.com.  It's like it doesn't find it.
>
>
> Thanks,
>
>
> Stuart (sitting at home with his wireless card. 7 feet from router
> because can't go the 30 feet distance from my bedroom to the router.
> netgear are sending me a new card. from the Netherlands!).
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to