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