CN104866312A - A Pseudo-Static Realization Method Based on ASP.NET - Google Patents
A Pseudo-Static Realization Method Based on ASP.NET Download PDFInfo
- Publication number
- CN104866312A CN104866312A CN201510267060.4A CN201510267060A CN104866312A CN 104866312 A CN104866312 A CN 104866312A CN 201510267060 A CN201510267060 A CN 201510267060A CN 104866312 A CN104866312 A CN 104866312A
- Authority
- CN
- China
- Prior art keywords
- static
- node
- configuration
- add
- implementation method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域 technical field
本发明涉及ASP.NET技术领域,具体涉及一种基于ASP点NET(ASP.NET)的伪静态实现方法。 The invention relates to the technical field of ASP.NET, in particular to a pseudo-static realization method based on ASP.NET (ASP.NET).
背景技术 Background technique
在WEB开发过程,为了更好的缓解服务器压力,和增强对搜索引擎的友好面;一般都将文章内容生成静态页面。但有时为了实时的显示一些信息,或者运用动态脚本解决一些问题时,就不能用静态的方式来展示网站内容;但是这样就损失了对搜索引擎的友好面,降低了对搜索引擎的搜录。 In the process of WEB development, in order to better relieve the pressure on the server and enhance the friendliness to search engines; generally, the content of the article is generated into a static page. But sometimes in order to display some information in real time, or use dynamic scripts to solve some problems, it is not possible to display the content of the website in a static way; but this will lose the friendliness to search engines and reduce the indexing of search engines.
发明内容 Contents of the invention
本发明解决的技术问题在于提供一种基于ASP.NET的伪静态实现方法,解决了搜索引擎对动态链接搜录的问题。 The technical problem solved by the invention is to provide a pseudo-static implementation method based on ASP.NET, which solves the problem of dynamic link search by search engines.
本发明解决上述技术问题的技术方案是: The technical scheme that the present invention solves the problems of the technologies described above is:
所述的方法包含以下几个步骤: The described method comprises the following steps:
步骤一、在网站项目中添加引用URLRewriter程序集; Step 1. Add a reference to the URLRewriter assembly in the website project;
步骤二、在webconfig中添加对URLRewriter的配置引用; Step 2: Add a configuration reference to URLRewriter in webconfig;
步骤三、在webconfig中配置URL重写规则; Step 3. Configure URL rewriting rules in webconfig;
步骤四、以URL重写规则方式重写页面中原动态链接; Step 4. Rewrite the original dynamic link in the page by means of URL rewriting rules;
步骤五、配置IIS相关伪静态规则; Step 5. Configure IIS-related pseudo-static rules;
当访问重写后的静态页面链接时,IIS自动解析重写链接,加载页面数据。 When accessing the rewritten static page link, IIS automatically resolves the rewritten link and loads the page data.
所述的步骤一中,在网站项目中添加对URLRewriter.dll程序集的引用。 In the first step, add a reference to the URLRewriter.dll assembly in the website project.
所述的步骤二中,在<configuration>节点和<httpModules>节点下添加对URLRewriter的引用。 In the second step, add a reference to URLRewriter under the <configuration> node and the <httpModules> node.
所述的步骤三中,在<configuration>与</configuration>节点之间加入<RewriterConfig></RewriterConfig>节点;在<RewriterConfig>节点之间配置伪静态语法。 In the third step, a <RewriterConfig></RewriterConfig> node is added between the <configuration> and </configuration> nodes; a pseudo-static grammar is configured between the <RewriterConfig> nodes.
所述的步骤五中,添加脚本映射,通配符映射,托管处理程序映射,及应用程序池配置等。 In step five, add script mapping, wildcard mapping, managed handler mapping, and application pool configuration, etc.
本发明通过引用URLRewriter程序集,对webcofig进行重写规则配置,再重写动态路径,当访问重写后的链接时,由IIS对链接进行重写解析,自动转向动态链接,加载页面数据。本发明解决了ASP.NET在WEB开发过程中,由于显示实时动态内容的链接而降低对搜索引擎的搜录问题。 The present invention configures webcofig with rewriting rules by citing the URLRewriter assembly, and then rewrites the dynamic path. When the rewritten link is accessed, the IIS rewrites and analyzes the link, automatically turns to the dynamic link, and loads page data. The invention solves the problem of reducing the indexing of search engines due to the display of real-time dynamic content links in the WEB development process of ASP.NET.
附图说明 Description of drawings
下面结合附图对本发明进一步说明: Below in conjunction with accompanying drawing, the present invention is further described:
附图1是本发明方法流程框图。 Accompanying drawing 1 is a flow chart of the method of the present invention.
具体实施方式 Detailed ways
如图1所示,本发明具体包含以下几个步骤: As shown in Figure 1, the present invention specifically comprises the following steps:
步骤一:在网站项目中添加对URLRewriter.dll程序集的引用; Step 1: Add a reference to the URLRewriter.dll assembly in the website project;
步骤二:配置webconfig文件,在<configuration>节点和<httpModules>节点下添加对URLRewriter的引用; Step 2: Configure the webconfig file, add a reference to URLRewriter under the <configuration> node and <httpModules> node;
步骤三:在webconfig中配置URL重写规则,在<configuration>与 </configuration>节点之间加入<RewriterConfig></RewriterConfig>节点。在<ReWriterConfig>节点之间配置伪静态语法; Step 3: Configure URL rewriting rules in webconfig, and add <RewriterConfig></RewriterConfig> nodes between <configuration> and </configuration> nodes. Configure pseudo-static syntax between <ReWriterConfig> nodes;
关键代码如下: The key code is as follows:
步骤四:以URL重写规则改写页面中的原动态链接,即把动态链接以重写后静态链接进行改写; Step 4: Rewrite the original dynamic link in the page with URL rewriting rules, that is, rewrite the dynamic link with the rewritten static link;
步骤五:配置IIS相关伪静态规则,如添加脚本映射,通配符映射,托管处理程序映射,设置应用程序池为经典模式,同时启用32位应用程序,以同时兼容32位与64位操作系统。 Step 5: Configure IIS-related pseudo-static rules, such as adding script mapping, wildcard mapping, hosting handler mapping, setting the application pool to classic mode, and enabling 32-bit applications at the same time to be compatible with both 32-bit and 64-bit operating systems.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510267060.4A CN104866312A (en) | 2015-05-22 | 2015-05-22 | A Pseudo-Static Realization Method Based on ASP.NET |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510267060.4A CN104866312A (en) | 2015-05-22 | 2015-05-22 | A Pseudo-Static Realization Method Based on ASP.NET |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104866312A true CN104866312A (en) | 2015-08-26 |
Family
ID=53912163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510267060.4A Pending CN104866312A (en) | 2015-05-22 | 2015-05-22 | A Pseudo-Static Realization Method Based on ASP.NET |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104866312A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423586A (en) * | 2017-07-31 | 2017-12-01 | 北京深思数盾科技股份有限公司 | Method for protecting software and software protecting equipment |
CN108255865A (en) * | 2016-12-29 | 2018-07-06 | 广东中科遥感技术有限公司 | Php website forms link static treatment method |
CN110175308A (en) * | 2019-05-30 | 2019-08-27 | 南京星期五网络科技有限公司 | SEO total solution management system |
CN111488378A (en) * | 2020-04-10 | 2020-08-04 | 杭州趣维科技有限公司 | Query optimization method of MySQ L database based on Rewriter |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070156888A1 (en) * | 2005-12-29 | 2007-07-05 | Microsoft Corporation | Dynamically repositioning workflow by end users |
CN101247395A (en) * | 2008-03-13 | 2008-08-20 | 武汉理工大学 | An ISAPI access control system with fully transparent transmission of Session ID |
US20120159430A1 (en) * | 2010-12-15 | 2012-06-21 | Microsoft Corporation | Extensible template pipeline for web applications |
CN102800028A (en) * | 2012-06-19 | 2012-11-28 | 山西太钢不锈钢股份有限公司 | Energy quality management system of WEB-based distributed multilevel software system |
CN104468804A (en) * | 2014-12-15 | 2015-03-25 | 浪潮通用软件有限公司 | Web server, method and system for processing user session |
-
2015
- 2015-05-22 CN CN201510267060.4A patent/CN104866312A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070156888A1 (en) * | 2005-12-29 | 2007-07-05 | Microsoft Corporation | Dynamically repositioning workflow by end users |
CN101247395A (en) * | 2008-03-13 | 2008-08-20 | 武汉理工大学 | An ISAPI access control system with fully transparent transmission of Session ID |
US20120159430A1 (en) * | 2010-12-15 | 2012-06-21 | Microsoft Corporation | Extensible template pipeline for web applications |
CN102800028A (en) * | 2012-06-19 | 2012-11-28 | 山西太钢不锈钢股份有限公司 | Energy quality management system of WEB-based distributed multilevel software system |
CN104468804A (en) * | 2014-12-15 | 2015-03-25 | 浪潮通用软件有限公司 | Web server, method and system for processing user session |
Non-Patent Citations (1)
Title |
---|
侯鹏: "Asp.net中伪静态的应用与实现", 《电脑知识与技术》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108255865A (en) * | 2016-12-29 | 2018-07-06 | 广东中科遥感技术有限公司 | Php website forms link static treatment method |
CN108255865B (en) * | 2016-12-29 | 2020-10-16 | 广东中科遥感技术有限公司 | Static processing method for php website template link |
CN107423586A (en) * | 2017-07-31 | 2017-12-01 | 北京深思数盾科技股份有限公司 | Method for protecting software and software protecting equipment |
CN107423586B (en) * | 2017-07-31 | 2018-11-20 | 北京深思数盾科技股份有限公司 | Method for protecting software and software protecting equipment |
CN110175308A (en) * | 2019-05-30 | 2019-08-27 | 南京星期五网络科技有限公司 | SEO total solution management system |
CN111488378A (en) * | 2020-04-10 | 2020-08-04 | 杭州趣维科技有限公司 | Query optimization method of MySQ L database based on Rewriter |
CN111488378B (en) * | 2020-04-10 | 2023-05-12 | 杭州小影创新科技股份有限公司 | Rewriter-based query optimization method of MySQL database |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11956327B2 (en) | Application logging framework | |
CN107562467B (en) | Page rendering method, device and equipment | |
US9256697B2 (en) | Bidirectional mapping between applications and network content | |
US8131753B2 (en) | Apparatus and method for accessing and indexing dynamic web pages | |
CN104866312A (en) | A Pseudo-Static Realization Method Based on ASP.NET | |
US9900382B2 (en) | Promotion of internet-of-things (IOT) connectivity | |
WO2008042877A3 (en) | Dynamically configured rendering of digital maps | |
JP6080866B2 (en) | Computerized method, system, and computer program for mapping one or more dynamic visual objects of a network document | |
CN106611008A (en) | Method and device for managing internet content labels | |
CN110046170A (en) | Sentence based on multifile management executes method, apparatus, equipment and medium | |
CN104391909A (en) | A method of IFRAME cross-domain highly self-adaptive | |
CN110321503B (en) | Web component caching method and device and electronic equipment | |
CN108287704A (en) | The method and system that web front-end exploration project is built | |
CN104283947A (en) | Java script dynamic consolidated server and work process thereof | |
CN105824944A (en) | XML (X Extensible Markup Language) configuration data maintenance method and system based on scripting language | |
CN105653717A (en) | Information sharing method and device | |
CN103309954A (en) | Html webpage based data extracting system | |
CN105718279A (en) | Firefox based OS application generation method and apparatus | |
CN105335160B (en) | A kind of WEB terminal component agile development method based on JSF | |
CN103744991A (en) | Method for XML-based data transmission between SAP systems | |
WO2012063451A1 (en) | Information processing device | |
CN103778181B (en) | The introduction method and device of icon in browser collection folder | |
CN110764994A (en) | Page element packaging method and device, electronic equipment and storage medium | |
CN108153665A (en) | Data test method and device | |
US10754915B2 (en) | Tag plan generation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150826 |