Hey.
Basically Ive got an url:
www.thepagename.com/town_page.asp?town_name=WHATEVER
Basically need that to be written and shown in the browser like:
www.thepagename.com/WHATEVER.html
notice how i've added the .html, thats for our Search Engine
Optimisation, or it may not be needed? i dunno.
Any ideas please?
Ive done this in PHP before, but never with ASP.
Thanks in advance!
As others have said, ASP cannot do this by itself.
However, search engines do not need to have the html extension, they can
use anything, as long as they can get to the content.
Here's my suggestion to you:
1. Write valid markup - use strict HTML 4.01 or if you have need for it
Strict XHTML 1.0
2. Use semantic markup - if something is a heading, use a heading
element. If it's a navigation list, use an unordered list. If its a
paragraph, use a paragraph. Use tables for their intended purpose,
tabular data. Do not use tables for presenation or postioning of
elements.
3. Separate content from presenation. Use no presenational markup at
all, and put all your presentation into an external stylesheet. I'll go
one further with that, and suggest one for positioning, and another for
colors only.
4. Put all javascript into an external file. Don't include it in the
page unless you absolutely have to.
5. Don't use document.asp?id=123. Google and others seem to not like id,
perhaps they think they are going on an endless loop.
6. For links that really don't matter, ie, document.asp?color=green, you
can tell Google and others not to follow like this: <a
href="document.asp?color=green" rel="nofollow">See the site in green</a>.
7. Have a valid robots.txt file, but do not rely on it to keep bots away
from places they should never go.