Author: Grant
Email: [EMAIL PROTECTED]
Message:
I am trying to get an https site indexed that requires a SecurID login.  The AuthBasic 
doesn't seem to work for me because the Auth plugin that apache is using redirects the 
user to a web form to enter their username and passcode.  I'm going to see if we can 
run the same site under an additional host name or ip address that just uses AuthBasic 
security for indexing purposes.  I wrote a quick ColdFusion script to update the 
records in the url table to reflect the real domain name I want users to see when the 
search results are returned.

Can anyone think of a better way to get this https site indexed with mnogo given the 
security in place?

The quick script I wrote is included below.  I figure a pgsql, mysql script or 
function could be written to do the same thing but this was quicker for me and also I 
know how to set it up to run on a schedule using cfscheduler.

<cfquery name="qryUrl" datasource="MnogoSearch">
 select req_id, url from url
</cfquery>
Total Records: <cfoutput>#qryUrl.recordcount#</cfoutput><br><br>
<cfset update_counter = 0>
<cfoutput query="qryUrl">
  <cfif ReFindNoCase("http://insecure",url)>
  <cfset newurl = ReReplaceNoCase(url,"http://insecure","https://secure";)>
    <cfquery name="insert" datasource="MnogoSearch">
   update url set
   url = '#Trim(newurl)#'
   where rec_id = #rec_id#
  </cfquery>
  <cfset update_counter = update_counter + 1>
  Recid: #rec_id#<br>
  Old Url: "#url#"<br>
  New Url: "#newurl#"<br>
  Updated Record Count: #update_counter#<br><br>
 </cfif>
</cfoutput>

Reply: <http://www.mnogosearch.org/board/message.php?id=3925>

___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to