MX and URL trick for search engines

2002-07-30 Thread MW

We use the trick of replacing the ampersands and question marks in a URL
with slashes in order to have our website indexed by search engines.
Instead of having the URL appear as:

MySite.cfm?VarName=Value

it appears as

MyPage.cfm/VarName/Value

This works extremely well in CF5 on IIS5 (patched to the hilt). The
functionality happened, as I recall, out of the box. We saw the method
recommended in fusebox and adopted it.

We are now configuring CFMX on a development server, and all of a sudden
it is broken. We never ran CF5 on this server as a control, so it could
be IIS that is misconfigured or has a patch that stops this behavior,
although we just built out another CF5 server on a fully patched IIS
install and had no problems.

There is a third party ISAPI filter that will do this in IIS, but I'm
wondering what has happened to break this. Any ideas?

Thanks,
Matt

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: MX and URL trick for search engines

2002-07-30 Thread Sean A Corfield

On Tuesday, July 30, 2002, at 08:08 , MW wrote:
 MyPage.cfm/VarName/Value
 We are now configuring CFMX on a development server, and all of a sudden
 it is broken.

In CFMX, CGI.PATH_INFO should contain /VarName/Value - I believe this is 
slightly different behavior to CF5?

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: MX and URL trick for search engines

2002-07-30 Thread Martin Orth

I use this code as a custom tag. It requires cgi.path_info and
cgi.script_name

It transforms cgi.path_info into url variables

you can urls like index.cfm/fuseaction/showrecord/id/23

with the custom you will get two url variables
url.fuseaction=showrecord
url.id=23

cfset lRawUrlParam=Replace(cgi.path_info,script_name,)
cfset aRawUrlParam=ListToArray(lRawUrlParam,/)
cfloop from=1 to=#ArrayLen(aRawUrlParam)# index=i step=2
cfif i mod 2 eq 1 and i+1 lte ArrayLen(aRawUrlParam)
cfset url.#aRawUrlParam[i]#=Evaluate(aRawUrlParam[i+1])/cfif
/cfloop

- Original Message -
From: MW [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 5:08 PM
Subject: MX and URL trick for search engines


 We use the trick of replacing the ampersands and question marks in a URL
 with slashes in order to have our website indexed by search engines.
 Instead of having the URL appear as:

 MySite.cfm?VarName=Value

 it appears as

 MyPage.cfm/VarName/Value

 This works extremely well in CF5 on IIS5 (patched to the hilt). The
 functionality happened, as I recall, out of the box. We saw the method
 recommended in fusebox and adopted it.

 We are now configuring CFMX on a development server, and all of a sudden
 it is broken. We never ran CF5 on this server as a control, so it could
 be IIS that is misconfigured or has a patch that stops this behavior,
 although we just built out another CF5 server on a fully patched IIS
 install and had no problems.

 There is a third party ISAPI filter that will do this in IIS, but I'm
 wondering what has happened to break this. Any ideas?

 Thanks,
 Matt

 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: MX and URL trick for search engines

2002-07-30 Thread Bryan F. Hogan

See cfdev.com's products

-Original Message-
From: MW [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: Tuesday, July 30, 2002 11:15 AM
Subject: MX and URL trick for search engines


We use the trick of replacing the ampersands and question marks in a URL
with slashes in order to have our website indexed by search engines.
Instead of having the URL appear as:

MySite.cfm?VarName=Value

it appears as

MyPage.cfm/VarName/Value

This works extremely well in CF5 on IIS5 (patched to the hilt). The
functionality happened, as I recall, out of the box. We saw the method
recommended in fusebox and adopted it.

We are now configuring CFMX on a development server, and all of a sudden
it is broken. We never ran CF5 on this server as a control, so it could
be IIS that is misconfigured or has a patch that stops this behavior,
although we just built out another CF5 server on a fully patched IIS
install and had no problems.

There is a third party ISAPI filter that will do this in IIS, but I'm
wondering what has happened to break this. Any ideas?

Thanks,
Matt


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: MX and URL trick for search engines

2002-07-30 Thread MW

IIS gives a 404 error, and fails to hand off the page to CFMX for
processing. It isn't a CFMX error for an unrecognized variable.
Therefore, I don't think there is any code we can put in our CFM pages
to solve this.

A lot of people use this trick, especially on apache with 'mod_rewrite'.
The commercial ISAPI filter is IIS Rewrite from
http://www.qwerksoft.com/.

Still researching...

Matt

-Original Message-
From: Martin Orth [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 30, 2002 10:41 AM
To: CF-Talk
Subject: Re: MX and URL trick for search engines

I use this code as a custom tag. It requires cgi.path_info and
cgi.script_name

It transforms cgi.path_info into url variables

you can urls like index.cfm/fuseaction/showrecord/id/23

with the custom you will get two url variables
url.fuseaction=showrecord
url.id=23

cfset lRawUrlParam=Replace(cgi.path_info,script_name,)
cfset aRawUrlParam=ListToArray(lRawUrlParam,/)
cfloop from=1 to=#ArrayLen(aRawUrlParam)# index=i step=2
cfif i mod 2 eq 1 and i+1 lte ArrayLen(aRawUrlParam)
cfset url.#aRawUrlParam[i]#=Evaluate(aRawUrlParam[i+1])/cfif
/cfloop

- Original Message -
From: MW [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 5:08 PM
Subject: MX and URL trick for search engines


 We use the trick of replacing the ampersands and question marks in a
URL
 with slashes in order to have our website indexed by search engines.
 Instead of having the URL appear as:

 MySite.cfm?VarName=Value

 it appears as

 MyPage.cfm/VarName/Value

 This works extremely well in CF5 on IIS5 (patched to the hilt). The
 functionality happened, as I recall, out of the box. We saw the method
 recommended in fusebox and adopted it.

 We are now configuring CFMX on a development server, and all of a
sudden
 it is broken. We never ran CF5 on this server as a control, so it
could
 be IIS that is misconfigured or has a patch that stops this behavior,
 although we just built out another CF5 server on a fully patched IIS
 install and had no problems.

 There is a third party ISAPI filter that will do this in IIS, but I'm
 wondering what has happened to break this. Any ideas?

 Thanks,
 Matt

 

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists