I. url URL rewriting
1. Download an object from msdn and set Actionlessform. dll And Urlrewriter. dll Put it in the bin directory. This is an article on URL rewriting in msdn. Article . Execute URL rewriting in ASP. NET
2. Add the followingCode
<! -- Custom configuration section -->
<Configsections>
<Section name = "rewriterconfig" type = "urlrewriter. config. rewriterconfigserializersectionhandler, urlrewriter"/>
</Configsections>
<! -- Rul Rewrite Rules -->
<Rewriterconfig>
<Rules>
<! -- Rewrite Rules for The XXX1 module -->
<Rewriterrule>
<Lookfor> ~ /(\ D {4})/(\ D {2})/(\ D {2}) \. html </lookfor>
<Sendto> <! [CDATA [~ /Mypage. aspx? Param1 = $1 & param2 = $2 & param3 = $3]> </sendto>
</Rewriterrule>
<! -- Rewrite Rules of The xxx2 module -->
<Rewriterrule>
<Lookfor> ~ /AAA/BBB/mypage/([\ W] +) \. html </lookfor>
<Sendto> <! [CDATA [~ /AAA/BBB/mypage. aspx? Param1 = $1]> </sendto>
</Rewriterrule>
</Rules>
</Rewriterconfig>
<! -- Register the HTTP module -->
<Httpmodules>
<Add type = "urlrewriter. modulerewriter, urlrewriter" name = "modulerewriter"/>
</Httpmodules>
<! -- <Httphandlers>
<Add verb = "*" Path = "*. aspx" type = "urlrewriter. rewriterfactoryhandler, urlrewriter"/>
</Httphandlers> -->
3. In IIS, Set. HtmlThe file is mapped to X: \ winnt \ Microsoft. NET \ framework \ v1.1.4322 \Aspnet_isapi.dll
4. Usage:
You only need to modify the rewrite rules in Web. config.
Note that the pair () in lookfor corresponds to a $ [1, 2, 3... n] In sendto.
Ii. About RSS
RSS is a file format used by RSS readers, such as news seeds and RSS seeds. RSS is an XML file with the suffix. aspx, but the content must be XML. The syntax is as follows:
------------------- An RSS seed. xml --------------------------------
<? XML version = "1.0" encoding = "gb2312"?>
& Lt; RSS version = "2.0" & gt;
<Channel>
<Title> the name and title of this RSS seed (Channel) </title>
<Link> the URL of this RSS seed (Channel). xml </link>
<Description> here is a brief description of this RSS seed (channel), as you can do... </description>
<Item>
<Title> A specific reference title, such as a news title </title>
<Link> http: // www. Connection address of the news. com/real HTML or aspx address. aspx? AAA = 1 & BBB = 2 </link>
<Description> This news is generally about displaying part of the news... </description>
<Pubdate> needless to say, release date </pubdate>
</Item>
</Channel>
</RSS>
---------------------------------------------
To let the search engine spider know where this seed is, you can add a <link> in <Head>
............
<LINK rel = "alternate" type = "application/RSS + XML" Title = "my RSS title" href = "http://www.myweb.com/rss/myrss.xml"/>
............
</Head>
-----------------------------------------------
To enable those who use RSS news readers to subscribe to seeds, you need to connect this file to an [RSS] image or an (RSS) connection.
Iii. opml
The opml file is actually a collection of RSS file directories. The above is an RSS file, and opml is a directory of a lot of RSS files.
The opml file is also in XML format. Its syntax is as follows:
-------------- Myopml. opml ---------------------
<? XML version = "1.0" encoding = "gb2312"?>
<Opml version = "1.0">
<Head>
<Title> title of the opml directory file </title>
<Link> connection address of the opml directory file. opml </link>
<Description> A brief description of the opml directory file. Write it as needed... </description>
<Head>
<Body>
<! -- An outline record an RSS seed address -->
<Outline type = "RSS"
Title = "RSS seed title"
TEXT = "RSS seed text, similar to the title"
Description = "Brief description of RSS seeds"
Xmlurl = "RSS seed URL. xml"
Htmlurl = "RSS seed HTML connection address. xml"
/>
............
</Body>
</Opml>
------------------------------------------------------
To let the search Spider know where the opml file is, you can write <link> in <Head>
......
<LINK rel = "outline" type = "application/XML" Title = title of this opml file "href =" address of this opml file. opml "/>
......
</Head>