If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Serch Engine Friendly Site...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-09, 11:26
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
Serch Engine Friendly Site...

Hi,
I have a issue with the url mapping in ASP. I have a page called "Hotel_List.asp" which contains the list of the hotels. I can click any of the hotel form the page and same gets href to "Hotel_Details.asp?id=1234". And then the browser displays the hotel details of the hotel with the the id = 1234. and also the url changes to "..../Hotel_Details.asp?id=1234"

This is not a search engine friendly way of doing it. It should always be HTML for the serach engine friendly nature of the site.

Also I want to display the url to be ".../le-claridge-champs-elysees.html", instead of "..../Hotel_Details.asp?id=1234". i.e. the hotel name as per the id. In this case the name of the hotel is "e-claridge-champs-elysees" and the id is "1234"

Then I thought to map the url internally at IIS level through some add ons (mod_rewrite) for IIS.

Kindly suggest me the way....

Thanks,
Rahul Jha
__________________
Reply With Quote
  #2 (permalink)  
Old 03-27-09, 11:36
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,516
mod_rewrite is the way most people solve this problem

i do it a bit differently

i have a "custom 404 handler" (sorry, i have no idea how to set that up in IIS) which is a module that gets control whenever the web server detects a 404, so instead of the web server just issuing a 404, this module gets control instead

then this module looks at the url that was requested, pulls out the page name, looks that up in a database table, and then pulls the content for that page out of the database and displays it

the url that the person typed in remains the same in the address bar, and no 404 is issued

(of course, if the page is not found in the database by name, then it actually is a genuine 404)

this method also allows you to manage the set of page names with an admin interface to the database, rather than having to add to a long list of lines in a mod-rewrite module
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-29-09, 20:23
SimonMT SimonMT is offline
Registered User
 
Join Date: Sep 2006
Posts: 265
There is nothing wrong with using asp all the search engines that matter can interrupt Querystrings. The problem with using IDs is thaey have no bearing on the content 1234 means nothing whereas describes the content

Hotel_Details.asp?Hotel=claridgechampselysees.

mod-rewrites are unnecessary if you structure you content correctly.

Go and look on google for Trevor Sutton and you will find Querystrings being used.

Simon
Reply With Quote
  #4 (permalink)  
Old 04-01-09, 00:13
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,142
Quote:
Originally Posted by DBA_Rahul
Hi,
I have a issue with the url mapping in ASP. I have a page called "Hotel_List.asp" which contains the list of the hotels. I can click any of the hotel form the page and same gets href to "Hotel_Details.asp?id=1234". And then the browser displays the hotel details of the hotel with the the id = 1234. and also the url changes to "..../Hotel_Details.asp?id=1234"

This is not a search engine friendly way of doing it. It should always be HTML for the serach engine friendly nature of the site.

Also I want to display the url to be ".../le-claridge-champs-elysees.html", instead of "..../Hotel_Details.asp?id=1234". i.e. the hotel name as per the id. In this case the name of the hotel is "e-claridge-champs-elysees" and the id is "1234"

Then I thought to map the url internally at IIS level through some add ons (mod_rewrite) for IIS.

Kindly suggest me the way....

Thanks,
Rahul Jha
don't you mean human friendly


it the computer doing the "Serch Engine thing ...not a human "

use the meta tagscorrectly

I sometime get the asp to make a the blank page call lets say "le-claridge-champs-elysees.html" and then rediect that point to to Hotel_Details.asp?id=1234
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On