May I ask you a question about the htaccess regular match?

Source: Internet
Author: User
Excuse me, the address is similar to the following
Http://localhost/info.html\ "
Would like to filter out the multiple input \ "

Rewriterule ^info.html (. *) $ member_info.php
Rewriterule ^info.html\\\ "$ member_info.php

All match failed, excuse me, is there any other matching method?


Reply to discussion (solution)

Do not affect the use, why let Apache so hard?
Besides, rewriting does not change the display of the address bar, the jump will only

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

This/put it on the top also nothing, the effect is the same.

Do not affect the use, why let Apache so hard?
Besides, rewriting does not change the display of the address bar, the jump will only



http://bbs.csdn.net/topics/390859703/"changed into http://bbs.csdn.net/topics/390859703
The former is a display failure 404
I think it's normal to turn into the latter.

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

This/put it on the top also nothing, the effect is the same.


There is also a quotation mark.
http://bbs.csdn.net/topics/390859703/"changed into http://bbs.csdn.net/topics/390859703
The former is a display failure 404
I think it's normal to turn into the latter.

If you add it, you get a real file.

If you add it, you get a real file.



There are currently no real folders. is always not matched.


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

This/put it on the top also nothing, the effect is the same.


There is also a quotation mark.
http://bbs.csdn.net/topics/390859703/"changed into http://bbs.csdn.net/topics/390859703
The former is a display failure 404
I think it's normal to turn into the latter.


What browser do you test, my side effect is the same.

Http://localhost/info.html\ "
Would like to filter out the multiple input \ "

Rewriterule ^info.html (. *) $ member_info.php

It's done, 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.