Re: redirect question SERVER_NAME script_name
yeah have full access. its iis On Tue, Jan 27, 2009 at 4:49 PM, Mark Pederson wrote: >> Hey Mark. >> could you please explain how you implemented the ISAPI re-write. > > > Well I guess it depends on a few things. Do you have access to the web > server? What is it running? > In my case I have full control of the IIS servers and used Ionic Isapi > rewriter > http://www.codeplex.com/IIRF > > I just make the simple entries in the .inf file and it works well. > > If you are using Apache you would use mod_rewrite either in the httpd.conf > file, or if you don't have access, then in a .htaccess file in your root. > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318646 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
> Hey Mark. > could you please explain how you implemented the ISAPI re-write. Well I guess it depends on a few things. Do you have access to the web server? What is it running? In my case I have full control of the IIS servers and used Ionic Isapi rewriter http://www.codeplex.com/IIRF I just make the simple entries in the .inf file and it works well. If you are using Apache you would use mod_rewrite either in the httpd.conf file, or if you don't have access, then in a .htaccess file in your root. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
Hey Mark. could you please explain how you implemented the ISAPI re-write. i did do which worked just fine. but the guy wanted morels.com/tasty for add placement, he says its easier for user to type in the morels.com?product=tasty so yeah, it makes folder structure real ugly. -paul On Tue, Jan 27, 2009 at 1:11 PM, Mark Pederson wrote: > I had the same problem and ended up using ISAPI re-write to do the job. The > request is redirected before it gets processed by CF at the web server level. > I initially was just creating the folder and puttinbg in an index.cfm with > the re-direct, but it got ugly real fast. You could also possibly put the > redirect into the error handling template, but that doesn't seem to elegant, > it definitely would mess with your server logs if you track errored templates > that way. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318629 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
I had the same problem and ended up using ISAPI re-write to do the job. The request is redirected before it gets processed by CF at the web server level. I initially was just creating the folder and puttinbg in an index.cfm with the re-direct, but it got ugly real fast. You could also possibly put the redirect into the error handling template, but that doesn't seem to elegant, it definitely would mess with your server logs if you track errored templates that way. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318622 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
hey guys looks like Missing Template Handler points to 404.cfm in cf admin which was causing it to ignore #CGI.SCRIPT_NAME# if there was no folder and no index.cfm how can i override the cfadmin missing template handler? On Mon, Jan 26, 2009 at 11:47 AM, Paul Ihrig wrote: > ok. > it dosnt work if there is no folder on the server called "tasty" > > CGI.SCRIPT_NAME > > it does work if there is a folder. > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318616 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
ok. it dosnt work if there is no folder on the server called "tasty" CGI.SCRIPT_NAME it does work if there is a folder. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318550 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
You forgot the CGI scope on the second condition here: Should be CGI.SCRIPT_NAME Greg On Mon, Jan 26, 2009 at 10:31 AM, Greg Luce wrote: > Yeah, SERVER_NAME is only going to have the server name, not the > subdirectory. You'll have to look at CF_TEMPLATE_PATH or PATH_TRANSLATED I > think to find "tasty". > > Greg > > > On Mon, Jan 26, 2009 at 10:12 AM, Paul Ihrig wrote: > >> hey guys.. >> >> trying to set up a ton of redirects in application.cfm >> >> they don't seem to be working. >> >> i want if url is www.morel/tasty/ >> to goto a addy... >> >> >> >> >> >> not sure if i need to check script_name to check for folder. >> >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318541 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: redirect question SERVER_NAME script_name
man.. this only works if there is a folder called /tasty/ i need it to work with out the folder being there., On Mon, Jan 26, 2009 at 10:23 AM, Paul Ihrig wrote: > nm... > > CONTAINS "/tasty/"> > > > > On Mon, Jan 26, 2009 at 10:12 AM, Paul Ihrig wrote: >> hey guys.. >> >> trying to set up a ton of redirects in application.cfm >> >> they don't seem to be working. >> >> i want if url is www.morel/tasty/ >> to goto a addy... >> >> >> >> >> >> not sure if i need to check script_name to check for folder. >> > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318540 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
Yeah, SERVER_NAME is only going to have the server name, not the subdirectory. You'll have to look at CF_TEMPLATE_PATH or PATH_TRANSLATED I think to find "tasty". Greg On Mon, Jan 26, 2009 at 10:12 AM, Paul Ihrig wrote: > hey guys.. > > trying to set up a ton of redirects in application.cfm > > they don't seem to be working. > > i want if url is www.morel/tasty/ > to goto a addy... > > > > > > not sure if i need to check script_name to check for folder. > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318538 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
cgi.server_name will only give you the "www.morel.com" part, so you'll need to look at parts of cgi.sript_name as well to get subdir's ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318533 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: redirect question SERVER_NAME script_name
On Mon, Jan 26, 2009 at 10:23 AM, Paul Ihrig wrote: > nm... > > CONTAINS "/tasty/"> > > > > I'd still do that in a cfswitch instead, and get rid of www before you check because people may type morel.ca not the subdomain cname www ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318535 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: redirect question SERVER_NAME script_name
On Mon, Jan 26, 2009 at 10:12 AM, Paul Ihrig wrote: > hey guys.. > > trying to set up a ton of redirects in application.cfm > > they don't seem to be working. > > i want if url is www.morel/tasty/ > to goto a addy... > > > > Get rid of www first. switch based on server name and if you need tasty then you need to add cgi.scriptname. http://www.morel.com/tasty/>"> leave this blank Casey ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318532 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: redirect question SERVER_NAME script_name
nm... On Mon, Jan 26, 2009 at 10:12 AM, Paul Ihrig wrote: > hey guys.. > > trying to set up a ton of redirects in application.cfm > > they don't seem to be working. > > i want if url is www.morel/tasty/ > to goto a addy... > > > > > > not sure if i need to check script_name to check for folder. > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318531 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: redirect question SERVER_NAME script_name
Just out put it. Dump the CGI scope to see the parts you need. SCRIPT_NAME will include the file name. Also be careful of case. Why not FindNoCase()? Adrian > -Original Message- > From: Paul Ihrig [mailto:pih...@gmail.com] > Sent: 26 January 2009 15:13 > To: cf-talk > Subject: redirect question SERVER_NAME script_name > > hey guys.. > > trying to set up a ton of redirects in application.cfm > > they don't seem to be working. > > i want if url is www.morel/tasty/ > to goto a addy... > > > addtoken="no"> > > > not sure if i need to check script_name to check for folder. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318528 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
redirect question SERVER_NAME script_name
hey guys.. trying to set up a ton of redirects in application.cfm they don't seem to be working. i want if url is www.morel/tasty/ to goto a addy... not sure if i need to check script_name to check for folder. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318527 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Server_Name
not sure. but I think older browsers don't pass the server_name, but I think it is simple enough to put up a front door. ie. index.html displays link:domain1 link:domain2 from then on they browse www.domain1.com/domain1/index.html how much traffic are your sites pushing through? ?? Does the cflocation double the load on the server? Where are you hosting? you can contact me offlist. [EMAIL PROTECTED] From: "John Bowering" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: Server_Name Date: Wed, 29 Mar 2000 15:40:06 -0500 Has anyone had any problems relying on the 'server_name' variable? I am trying to find a way to host 2 (or more) sites on one hosting account. Just wondering how reliable it is. This would be the index.htm: Or, if anyone has a better idea, can ya share? I would prefer not to pay for 2 or more accounts for sites that aren't bringing in any money right now. Thanks, John __ Get Your Private, Free Email at http://www.hotmail.com -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Server_Name
John, If you don't want to look for www. & .com use contain rather than is: I use a virtual directory called "rootdir" that can be altered for each site, so it would look something like this: Then all other paths are relative to the rootdir variable. Seems to work well, no caveats...yet. -Original Message- From: Pete Freitag [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 29, 2000 1:12 PM To: [EMAIL PROTECTED] Subject: RE: Server_Name Yes it should work ok, but keep in mind what if someone types in the IP address, then the IP address is the server name. Also if I typed in domain1.com then I wouldn't match anything either. So add the sites without the www. and also have a default case just incase something unexpected comes along. Pete Freitag CFDEV.COM Cold Fusion Developer Resources http://www.cfdev.com -Original Message- From: John Bowering [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 29, 2000 3:40 PM To: [EMAIL PROTECTED] Subject: Server_Name Has anyone had any problems relying on the 'server_name' variable? I am trying to find a way to host 2 (or more) sites on one hosting account. Just wondering how reliable it is. This would be the index.htm: Or, if anyone has a better idea, can ya share? I would prefer not to pay for 2 or more accounts for sites that aren't bringing in any money right now. Thanks, John -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Server_Name
> Has anyone had any problems relying on the 'server_name' variable? I am > trying to find a way to host 2 (or more) sites on one hosting > account. Just > wondering how reliable it is. I actually have 22 "cloned" sites running this way. The first thing I do in my app_globals script is query a db for a set of site parameters (about 12 columns, name, colors, a few graphics, etc) where site.id = #server_name# (it's a little more complicated than that, because I have a separate table of domain names where multiple domain names can be used for one site). Then the rest of the site is built around those variables. - Sean ~ Sean Daniels Manager of Engineering DealStream, Inc. [EMAIL PROTECTED] ~ tel: 207.439.6030 cel: 978.764.0799 Fax: 240.269.6319 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Server_Name
Yes it should work ok, but keep in mind what if someone types in the IP address, then the IP address is the server name. Also if I typed in domain1.com then I wouldn't match anything either. So add the sites without the www. and also have a default case just incase something unexpected comes along. Pete Freitag CFDEV.COM Cold Fusion Developer Resources http://www.cfdev.com -Original Message- From: John Bowering [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 29, 2000 3:40 PM To: [EMAIL PROTECTED] Subject: Server_Name Has anyone had any problems relying on the 'server_name' variable? I am trying to find a way to host 2 (or more) sites on one hosting account. Just wondering how reliable it is. This would be the index.htm: Or, if anyone has a better idea, can ya share? I would prefer not to pay for 2 or more accounts for sites that aren't bringing in any money right now. Thanks, John -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Server_Name
very reliable. I use for over 20 URLs doing the same thing, then I set a SiteID variable. -Original Message- From: John Bowering [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 29, 2000 12:40 PM To: [EMAIL PROTECTED] Subject: Server_Name Has anyone had any problems relying on the 'server_name' variable? I am trying to find a way to host 2 (or more) sites on one hosting account. Just wondering how reliable it is. This would be the index.htm: Or, if anyone has a better idea, can ya share? I would prefer not to pay for 2 or more accounts for sites that aren't bringing in any money right now. Thanks, John -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Server_Name
Has anyone had any problems relying on the 'server_name' variable? I am trying to find a way to host 2 (or more) sites on one hosting account. Just wondering how reliable it is. This would be the index.htm: Or, if anyone has a better idea, can ya share? I would prefer not to pay for 2 or more accounts for sites that aren't bringing in any money right now. Thanks, John -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.