I am an expert on Apache rewrite.

Source: Internet
Author: User
Bamboo asked me how to write a Apache rewrite question to access localhost: 8080sellinfo. asp? Id1 jumps to localhost: 8080jd37htmlgyjbj1.html. it seems that it is a question mark. For more information, see RewriteEngine & nbsp; on & nbsp; rewriteCo bamboo asks an Apache rewrite question
How do I write to access localhost: 8080/clusters/info. asp? Id = 1 jump to http: // localhost: 8080/jd37/html/gyjbj/1.html



It seems to be a question mark.

I wrote this by referring to the online documents.


RewriteEngine on

RewriteCond % {QUERY_STRING} ^ id = (. *) $
RewriteRule ^/logs/info. asp $/jd37/html/gyjbj/logs 1.html [L]


That seems like a jump. Enlighten me
------ Solution --------------------
Reference:
Quote: reference:

Quote: reference:

Is asp running in apache?



The asp is the previous website. now I have changed it to php. I want to ensure that my previous website was indexed by Baidu, so I have to perform rewrite and I have not jumped my previous asp to the current php static page, this is what it means.

Naturally, php has been changed, so here you need to know the following points:
1. if the content of the same article appears on multiple websites, the weight will be reduced. Therefore, your previous asp record will be cleared sooner or later.
2. what you need to do is to maintain the weight of the website as much as possible and transfer the weight. to do this, you need to use 301, and delete asp files on 404 pages.


Supported. 404 is the best method ..

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.