PDA

View Full Version : Redirect problems



mrmahoosive
11-14-2006, 02:17 PM
Hi everyone,

I'm posting this in here as I'm having a few issues. I think it javascript i'd use to sort it, hense posting in here.
I've got a site i'm currently working on here: http://www.mahoosive.co.uk/eccl

I would like users to go to http://www.mahoosive.co.uk/eccl/guildford and it be redirected to the index.html page, but using the ajax code off here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm to grab the main div content from guildford.html

currently /guildford redirects to index-guildford.html as a temp measure.

It's easier to tell people to go to /guildford rather than say go here, click here etc. So I want to give them a URL with a redirect.

Any help would be much appreciated.

Cheers

mwinter
11-15-2006, 01:54 AM
I'm posting this in here as I'm having a few issues. I think it javascript i'd use to sort it, hense posting in here.
I've got a site i'm currently working on here: http://www.mahoosive.co.uk/eccl

In my view, it lends a poor impression when a site breaks because it relies on client-side scripting, especially if it's for a computing company. It's also not very nice to make features like bookmarks and the Back button useless, nor is it smart to hide content from search engines. Dump that AJAX rubbish and author the site properly.

You're breaking the terms of use (http://www.dynamicdrive.com/notice.htm) by not including the credit for that AJAX script properly.

Mike

mrmahoosive
11-15-2006, 08:46 AM
Didn't see those terms of use before. I'll sort that out later though.

I was leaning towards just having a template and doing it from there.

mwinter
11-15-2006, 06:56 PM
I was leaning towards just having a template and doing it from there.

Fine, but use a server-side template system, or use tools during development to achieve the same result. Even something as rudimentary as SSI can be used to include common parts of a document. A server-side language like PHP and ASP can add even more functionality.

Mike