Sitemap.xml Generator V1.2(SMG, ASP Edition)

Q: What's sitemap.xml? Why I need this?
A: Sitemap.xml is used for search engine, e.g.: Google robot(Spider) will visit your web site, and capture html files, so other people can use Google to search and visit your web site. For some reasons, Google robot maybe not find out all files in your web site, so you maybe lose something. Sitemap.xml let Google to find out all files in your web site.

Q: How to use the SMG?
A: It's very easy to use it. Please download & upload the sitemap.asp to your web site, and visit it via your browser, then you can build the sitemap.xml. After update your web site, you should run sitemap.asp and build the sitemap.xml again. For security, please rename the sitemap.asp for your owner filename, otherwise other people maybe use SMG to scan your web site.

Q: How to protect my private files(s)?
A: As default, SMG only scan *.htm; *.html file(s), unless you specify the file types(s).  You can also use "Exclude" to filter the private file(s).

Q: Where is the sitemap.xml saved?
A: The sitemap.xml will be saved to the current path of server, e.g.: if the sitemap.asp URL is http://www.yourserver.com/help/sitemap.asp, then the sitemap.xml will be saved as http://www.yourserver.com/help/sitemap.xml, We recommend to place the sitemap.asp to "/" path. 

Q: Did I need to commit the sitemap.xml to Google?
A: You needn't do anything. Google Robot will capture the sitemap.xml automaticlly, but you can also manully sign up to Goolge.

Q: Why my browser prompt me to download the sitemap.asp?
A: Your web server can't support ASP, please contact your web server administrator.

Q: Why there is an error "Error, server can't support FileSystemObject"?
A: SMG need FSO component to scan all files of your web site, Please contact your web server administrator.

method=post> SMG will scan current path, sub-folder(s), and build the sitemap.xml at current path.
Please input the file type(s) you want to build, (*.*)  for all files:

Please input which file type(s) you want to exclude, e.g. *.mdb; *.pdf

Include sub-folder(s)            <% ' ' Sitemap.xml Generator ' Copyright(C) 2006 Kingron, All rights reserved. ' ' on Error Resume Next Server.ScriptTimeout=50000 Dim FileTypes, Excludes FileTypes = Trim(Request.Form("FileTypes")) Excludes = Trim(Request.Form("edtExclude")) if "" <> FileTypes then ' FSO: FileSystemObject; ' SF: Sitemap.xml file object ' SiteURI: URL for Browser of current site Dim FSO, FS, SiteURI, Ext, URL SiteURI = "http://" & Request.ServerVariables("SERVER_NAME") ' Create File System Object Set FSO = Server.CreateObject("Scripting.FileSystemObject") if Err then Response.Write("
Error, server can't support FileSystemObject") Response.End end if ' Create sitemap.xml, if exist, overrite! set FS = FSO.CreateTextFile(Server.MapPath("Sitemap.xml")) ' Write XML File Header FS.WriteLine("") FS.WriteLine("") ' Scan files and sub-folders Response.Write("

Search " & FileTypes & " file(s), exclude " & Excludes & " file(s) and creating sitemap.xml...") ScanDir(FSO.GetFolder(Server.MapPath("."))) ' Write file footer FS.WriteLine("
") Set FS = nothing Set FSO = nothing If Not Err Then Response.Write("

Sitemap.xml build success!
View Sitemap.xml") End If end if Function UnMapPath(Path) UnMapPath = Replace(Mid(Path, Len(Server.MapPath("/")) + 1), "\", "/") End Function function ScanDir(Dir) Response.Write("
Scan folder: " & UnMapPath(Dir)) Response.Flush for each file in Dir.Files Ext = Right(file.Path, len(file.Path) - InStrRev(file.Path, ".") + 1) if (InStr(FileTypes, Ext) > 0) or (FileTypes = "*.*") or (FileTypes = "*") then if InStr(Excludes, Ext) = 0 then ' Filter Exclude files URL = UnMapPath(File.Path) Response.Write("
Processing file: " & URL) Response.Flush FS.WriteLine("" & SiteURI + Escape(URL) & "" & file.DateLastModified & "") end if end if next if Request("ckbSubDir") = "on" then for each fold in Dir.SubFolders ScanDir(Fold) next end if end function %>

Free Sitemap.xml Generator(ASP Edition) for Google

Sitemap.xml Generator V1.2(SMG, ASP Edition)

Q: What's sitemap.xml? Why I need this?
A: Sitemap.xml is used for search engine, e.g.: Google robot(Spider) will visit your web site, and capture html files, so other people can use Google to search and visit your web site. For some reasons, Google robot maybe not find out all files in your web site, so you maybe lose something. Sitemap.xml let Google to find out all files in your web site.

Q: How to use the SMG?
A: It's very easy to use it. Please download & upload the sitemap.asp to your web site, and visit it via your browser, then you can build the sitemap.xml. After update your web site, you should run sitemap.asp and build the sitemap.xml again. For security, please rename the sitemap.asp for your owner filename, otherwise other people maybe use SMG to scan your web site.

Q: How to protect my private files(s)?
A: As default, SMG only scan *.htm; *.html file(s), unless you specify the file types(s).  You can also use "Exclude" to filter the private file(s).

Q: Where is the sitemap.xml saved?
A: The sitemap.xml will be saved to the current path of server, e.g.: if the sitemap.asp URL is http://www.yourserver.com/help/sitemap.asp, then the sitemap.xml will be saved as http://www.yourserver.com/help/sitemap.xml, We recommend to place the sitemap.asp to "/" path. 

Q: Did I need to commit the sitemap.xml to Google?
A: You needn't do anything. Google Robot will capture the sitemap.xml automaticlly, but you can also manully sign up to Goolge.

Q: Why my browser prompt me to download the sitemap.asp?
A: Your web server can't support ASP, please contact your web server administrator.

Q: Why there is an error "Error, server can't support FileSystemObject"?
A: SMG need FSO component to scan all files of your web site, Please contact your web server administrator.

method=post> SMG will scan current path, sub-folder(s), and build the sitemap.xml at current path.
Please input the file type(s) you want to build, (*.*)  for all files:

Please input which file type(s) you want to exclude, e.g. *.mdb; *.pdf

Include sub-folder(s)            <% ' ' Sitemap.xml Generator ' Copyright(C) 2006 Kingron, All rights reserved. ' ' on Error Resume Next Server.ScriptTimeout=50000 Dim FileTypes, Excludes FileTypes = Trim(Request.Form("FileTypes")) Excludes = Trim(Request.Form("edtExclude")) if "" <> FileTypes then ' FSO: FileSystemObject; ' SF: Sitemap.xml file object ' SiteURI: URL for Browser of current site Dim FSO, FS, SiteURI, Ext, URL SiteURI = "http://" & Request.ServerVariables("SERVER_NAME") ' Create File System Object Set FSO = Server.CreateObject("Scripting.FileSystemObject") if Err then Response.Write("
Error, server can't support FileSystemObject") Response.End end if ' Create sitemap.xml, if exist, overrite! set FS = FSO.CreateTextFile(Server.MapPath("Sitemap.xml")) ' Write XML File Header FS.WriteLine("") FS.WriteLine("") ' Scan files and sub-folders Response.Write("

Search " & FileTypes & " file(s), exclude " & Excludes & " file(s) and creating sitemap.xml...") ScanDir(FSO.GetFolder(Server.MapPath("."))) ' Write file footer FS.WriteLine("
") Set FS = nothing Set FSO = nothing If Not Err Then Response.Write("

Sitemap.xml build success!
View Sitemap.xml") End If end if Function UnMapPath(Path) UnMapPath = Replace(Mid(Path, Len(Server.MapPath("/")) + 1), "\", "/") End Function function ScanDir(Dir) Response.Write("
Scan folder: " & UnMapPath(Dir)) Response.Flush for each file in Dir.Files Ext = Right(file.Path, len(file.Path) - InStrRev(file.Path, ".") + 1) if (InStr(FileTypes, Ext) > 0) or (FileTypes = "*.*") or (FileTypes = "*") then if InStr(Excludes, Ext) = 0 then ' Filter Exclude files URL = UnMapPath(File.Path) Response.Write("
Processing file: " & URL) Response.Flush FS.WriteLine("" & SiteURI + Escape(URL) & "" & file.DateLastModified & "") end if end if next if Request("ckbSubDir") = "on" then for each fold in Dir.SubFolders ScanDir(Fold) next end if end function %>