Use Urlrewrite technology to implement the pseudo-static state of Struts2 + Hibernate3 + Spring Projects

Source: Internet
Author: User

My younger brother made a project, and now SEO asked me to implement pseudo static for all pages. I tried a variety of technologies and decided to use Urlrewrite technology. below is my urlrewrite. xml: <? Xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE urlrewrite PUBLIC "-// tuckey.org//DTD UrlRewrite 3.1 // EN" http://tuckey.org/res/dtds/urlrewrite3.1.dtd "> <urlrewrite> <rule> <from> ^/index.html </from> <to>/index. jsp </to> </rule> <from> ^/about_cepai/about_cepai.html </from> <to>/about_cepai/about_cepai.jsp </to> </rule> <rule> <from> ^/results_show/show.html </from> <to>/results_show/show. jsp </to> </rule> <from> ^/service _ Support.html </from> <to>/service/service_support.jsp </to> </rule> <from> ^/application/applicationFactory.jsp.html </from> <to>/application /applicationFactory. jsp. jsp </to> </rule> <from> ^/contect_us/contect_us.jsp.html </from> <to>/contect_us/contect_us.jsp.jsp </to> </rule> <rule> <from> ^/meterpro/(%0-9%%%%%_(%0-9%%%%%%.html $ </from> <to>/meterpro? Nid = $1 & amp; tid = $2 </to> </rule> </urlrewrite> can be implemented on any page without parameters, like the bottom <from> ^/meterpro/(%0-9%%%%%%_(%0-9%%%%%%.html $ </from> <to>/meterpro? Nid = $1 & amp; tid = $2 </to>. jsp pages with parameters cannot be pseudo-static at all times. I hope you can give me some advice.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.