Asking questions about the path in rewrite

Source: Internet
Author: User
Asking questions about the path in rewrite.
It was supposed to be for the Apache section. However, just asked once, there seems to be too deserted. There is a better answer to the previous advice here. So I re-posted for advice.

Environment Description:
/target.html
/images/image1.png

Reference image1.png:src= "Images/image1.png" in target.html

Do URL rewriting
Rewriterule/paht/source.html target.html

What happens is:
In the rendered page, the reference to images/image1.png becomes the reference path/images/image1.png.
So, the page is gone.

Excuse me, how can we solve this problem?


------Solution--------------------
Your rewrite rules are written like this: Rewriterule/paht/source.html target.html
If not please post detailed, convenient for us to analyze.
------Solution--------------------
Reference image1.png:src= "Images/image1.png" in target.html

Revision changed to

Reference image1.png:src= "/images/image1.png" in target.html

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