Search Engine Friendly (Dynamic Pages)
Closed     Case # 10026     Affiliated Job:  BaBaDou DOT Com
Opened:  Tuesday, February 23, 2010     Closed:  Tuesday, February 23, 2010
Total Hit Count:  24318     Last Hit:  Thursday, December 26, 2024 5:30:39 AM
Unique Hit Count:  6875     Last Unique Hit:  Thursday, December 26, 2024 5:30:39 AM
Case Type(s):  Development
Case Notes(s):  All cases are posted for review purposes only. Any implementations should be performed at your own risk.

Problem:
I have found that search engines, like Google, will only index the first page to my site which is made up of mostly Dynamic ASP content. I am in the process of updating my personal site and believe that by removing any "?" and "&" in the URLs throughout the content will greatly improve the likelihood that these pages will get indexed.

Action(s) Performed:
Total Action(s): 1
Action # Recorded Date Type Hit(s) User Expand Details
10097 2/23/2010 2:55:46 PM Database 3600 contact@danieljchu.com To accomplish this, I created a folder on my site "CaseID," setup a "HTTP R  Collapse ...
Last Hit: Thursday, December 26, 2024 5:30:31 AM

To accomplish this, I created a folder on my site "CaseID," setup a "HTTP Redirect" in IIS on that folder for a page at the root "/DanielJChu-CaseRedirect.asp?hdnID=$V&" - the "$V" will be replaced by IIS with the path and parameters provided to the original URL. Check "The exact URL entered above."

So for an example, "http://www.danieljchu.com/caseid/26.asp" will redirect to: "/DanielJChu-CaseRedirect.asp?hdnCaseID=/CaseID/26.asp&"

Next, you create the receiving page (in my case DanielJChu-CaseRedirect.asp) which parses out the ID in the passed parameter and simply does a "#include virtual" statement to include the original source code.

Example Redirect Script:
<%
    vID = "0"
    vExpandActionID = "0"
    If LEN(TRIM(Request("hdnID"))) Then
        vID = REPLACE(REPLACE(LCASE(Request("hdnID")),"/caseid/",""),".asp","")
    Else
        vID = "0"
    End If

    If InStr(1,vID,"-") Then
        vExpandActionID = MID(vID,InStr(1,vID,"-")+1)
        vID = MID(vID,1,InStr(1,vID,"-")-1)
    End If
%>
<!--#include virtual ="/originalpage.asp"-->


Procedure in IIS 7.0:



Resolution:
This process will, I hope, make the dynamic content appear as a static page to the search engines. The search engines will crawl the site including the dynamic content for future searches.



Profile IMG: Footer Left Profile IMG: Footer Right