Please refer to the following questions about htaccess regular expression matching:

Source: Internet
Author: User
I would like to ask a question about htaccess regular expression matching, which is similar to the following address.
Http: // localhost/info.html \"
It is intended to filter out multiple input \"

RewriteRule paiinfo.html (. *) $ member_info.php
RewriteRule paiinfo.html \\\ "$ member_info.php

All matching failed. Are there other matching methods?


Reply to discussion (solution)

It does not affect the use of Apache. why bother Apache?
Besides, rewriting will not change the display of the address bar.

Http://bbs.csdn.net/topics/390859703
Http://bbs.csdn.net/topics/390859703/

There is no such thing as this/. The effect is the same.

It does not affect the use of Apache. why bother Apache?
Besides, rewriting will not change the display of the address bar.



Http://bbs.csdn.net/topics/390859703/" change to http://bbs.csdn.net/topics/390859703
The former shows failure 404
I want to convert it to the latter.

Http://bbs.csdn.net/topics/390859703
Http://bbs.csdn.net/topics/390859703/

There is no such thing as this/. The effect is the same.


There is also a quotation mark.
Http://bbs.csdn.net/topics/390859703/" change to http://bbs.csdn.net/topics/390859703
The former shows failure 404
I want to convert it to the latter.

If yes, what is the real file? ? .

If yes, what is the real file? ? .



There is no real folder currently. No matching is found.


Http://bbs.csdn.net/topics/390859703
Http://bbs.csdn.net/topics/390859703/

There is no such thing as this/. The effect is the same.


There is also a quotation mark.
Http://bbs.csdn.net/topics/390859703/" change to http://bbs.csdn.net/topics/390859703
The former shows failure 404
I want to convert it to the latter.


In which browser do you test the performance on my side.

Http: // localhost/info.html \"
It is intended to filter out multiple input \"

RewriteRule paiinfo.html (. *) $ member_info.php

This can be matched.

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.