PDA

View Full Version : Redirect URL from content page to the layout page.



Scott
08-18-2005, 05:37 PM
I'm using ASP includes which allows me to seperate my content from my page layout theme without using frames.

The Zoom Search Engine returns the links to the content page, which is not contain the frameless theme (left and top border menus, company logos, ...).

Is there away to redirect the URL to another parallel link. My content and layout are maintain in parallel directories as described below:

http://root/layout/.../.../myPage.asp
http://root/content/.../.../myPage.asp

Thanks in advance for your help.

Ray
08-19-2005, 12:51 AM
Are you using spider or offline mode for indexing?

If you use spider mode (which is generally recommended for dynamically generated sites like ASP and PHP), you should not have this problem. Spider mode only locates pages by following the links it finds on each page. Now assuming that the links on your page should always point to the "presentation version" of a page (ie: the one which contains borders, logos and the layout for which the content is 'inserted') because that is what you want your users to see, then the spider should never come across your "behind the scenes" content pages.

But if you have links to the content pages (without the layout) then the spider would find them. Or perhaps you are linking to these files unknowingly.

Perhaps you can give us a URL to your website so we can see what you mean? Also tell us the start URL you are using to index from.

Scott
08-19-2005, 06:03 PM
I was using the offline mode. I switched to the Spider mode and I couldn't get it to traverse the web tree. Below is a link to the site:

http://mecsglobal.hostirian.com/Enviro-Chem/layout/default.asp

Thanks for the quick response.

wrensoft
08-19-2005, 09:14 PM
The starting point for the spider you have selected is fairly deep inside your site.

You have specified a point that is already a couple of levels deep.

/Enviro-Chem/layout/
This will result in only files under this level being indexed.

So the file,

/Enviro-Chem/layout/SulfuricAcid/sulfuric_acid.asp
gets indexed, but for example, the file,

/Enviro-Chem/images/TechBriefs/2011.pdf
will not be indexed. This is normal behaviour.

If you turn on verbose mode in Zoom, you can see the files being skipped.

[SKIPPED] Skipping http://mecsglobal.hostirian.com/Enviro-Chem/default.htm (External site - does not match base URL)

The solution is to either change the start point to the top level of your site or add additional start points using the "More" button in the main window of Zoom.

------
David