 |

leeshields
User
Mar 2, 2003, 5:34 AM
Post #1 of 7
(2401 views)
Shortcut
|
|
HTML Search page
|
Can't Post
|
|
Hi all I'm checking if there is any reason I cant/shouldnt use HTML for the search page other than more complex updating Basicaly i copied the source code of the parsed search.cgi and saved it as an html file and placed it in the exec folder It seems to work fine, is there any reason not to do this apart from having to replace the code if I update the templates. The reason I want to do it is so that search engines can see the search page, and also the links to the full property listings, hopefully then crawling the complete site listings Any suggestions? Lee __ Lee Shields Apogee Technology John R Hornsby Adelante Properties Villassist Paul Withey Estate Agents
|
|
|  |
 |

Benjamin
Staff

Mar 2, 2003, 11:25 AM
Post #2 of 7
(2394 views)
Shortcut
|
|
Re: [leeshields] HTML Search page
[In reply to]
|
Can't Post
|
|
Hi Lee, That sounds fine. So you did a search, saved the resulting source code in a file, and stored it in the /exec directory. If linked to, search engines would parse the file, yes. Of course, the drawback is that the page has to be updated any time the database content for that particular search query changes... conversely, one benefit is that is you do this for a commonly made search, it would be server-friendlier (since scripts require the server to be involved, of course) and it would quicken the 'searches'. Ben interactivetools.com
|
|
|  |
 | |  |
 |

Benjamin
Staff

Mar 2, 2003, 6:49 PM
Post #4 of 7
(2370 views)
Shortcut
|
|
Re: [leeshields] HTML Search page
[In reply to]
|
Can't Post
|
|
Hi Lee, I looked at your link, and the searchh.html file still calls the search.cgi script. So that would run fine, sure... but the search results still won't be parsed by a search engine... the search PAGE would, but that's not all that useful. But I really don't think you can just rename a .cgi script to a .html. I really can't see how that would work: the reason being, the server has to know to process the script as a cgi. The cgi extension denotes the file as a script - renaming it to an .html should stop the server trying to process it (unless the server regards .html files as scripts themselves and tries to 'run' them, too...) There be weird goin's on about these 'ere parts. I'm going to sit down and have some warm milk. ;-) Ben interactivetools.com
|
|
|  |
 |

leeshields
User
Mar 3, 2003, 3:06 AM
Post #5 of 7
(2360 views)
Shortcut
|
|
Re: [Benjamin] HTML Search page
[In reply to]
|
Can't Post
|
|
All i want is the search page not the search results. I know it seems pointless, it just allows a direct link to the full listings then and in theory every listing detail too, it also allows me to link from other sites into the search page and have them followed. Plus the search page will receive a ranking from google etc (im obsessed with search engines now) Another bonus is it allows multiple different search pages, like I said with multiple templates. And no, of course you cant just rename an html file, im not mad hehe I think you were over thinking the question a bit Thanks Lee __ Lee Shields Apogee Technology John R Hornsby Adelante Properties Villassist Paul Withey Estate Agents
|
|
|  |
 |

Benjamin
Staff

Mar 3, 2003, 2:36 PM
Post #6 of 7
(2335 views)
Shortcut
|
|
Re: [leeshields] HTML Search page
[In reply to]
|
Can't Post
|
|
Whether it was overthinking or underthinking I still managed to completely misunderstand you! :-) But if it works, it works! Great! Yes, you can actually have as many search forms as you want - just by copying the _search_query.html template and tweaking it to your desire. Thanks for your patience, Lee. Ben interactivetools.com
|
|
|  |
 |

leeshields
User
Mar 3, 2003, 3:14 PM
Post #7 of 7
(2330 views)
Shortcut
|
|
Re: [Benjamin] HTML Search page
[In reply to]
|
Can't Post
|
|
Just in case anyone else wants to do this just use the normal template then launch the search on the server as normal, search.cgi, then view the source code in explorer and copy and paste it into a blank html page. That way you dont have to worry about redoing all the tags from RM and you can make updates to the main template and very quickly update the source code. Thanks again Lee __ Lee Shields Apogee Technology John R Hornsby Adelante Properties Villassist Paul Withey Estate Agents
|
|
|  |
|