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 ..