PDA

View Full Version : Base Url - relative path issue



nickels
08-12-2010, 09:04 PM
I have Zoom Search set up to index my site in spider mode. However, it is not working when I use a relative path for the Base URL of "../"

My site uses a lot of includes so I thought using spider mode was better then offline mode. My issue occurs when I move the files from the development server to a production server. The Base URL is something like www.my-dev-server.com, when I move to production (www.production-server.com) all of the url's are pointing at the dev server.

I do not wish to spider the site for qa and production, I'd like one search to work on both servers. Is this possible?

wrensoft
08-12-2010, 11:14 PM
Use the re-write links function (on the indexing options configuration window).

From the help file,

Rewrite links


This option allows you to rewrite the indexed URLs of the pages indexed. This can be useful if you are spidering a development version of your site on a test server (eg. http://test.mycompany.com/) and creating index files to go on the live server (eg. http://www.mycompany.com/). You would do this by specifying rewrite options to replace all instances of "http://test.mycompany.com/" in the indexed URLs with "http://www.mycompany.com/".


You could also use this option to change all the search result links to be relative rather than absolute by replacing the domain (eg. "http://www.mysite.com/") with a relative path (eg. "./" or "../"). We only recommend this for users who are very familiar with relative linking and understand that the linking would only work if the generated search files are placed in an appropriate folder on the server.