Forum Moderators: phranque
The following is my work
.htaccess
RewriteEngine On
RewriteRule ^([a-z]+)/([0-9]+)/$ /dispaly.php?page=$1 [L]
index.php
<html>
<body>
Welcome to my page. <br>
<a href="image/1"> go to another page </a>
</body>
</html>
display.php
<html>
<body>
<img src="boat.gif" alt="Big Boat">
</body>
</html>
There are two ways to fix this. The first is to use server-relative or canonical links for included objects:
<img src[b]="/b[/b]oat.gif" alt="Big Boat"> <img src="http://www.example.com/boat.gif" alt="Big Boat">
RewriteEngine on
#
RewriteRule ^([a-z]+)/([0-9]+)/$ /display.php?page=$1 [L]
#
RewriteRule ^[a-z]+/[0-9]+/([^.]+\.(gif¦jpe?g¦png¦bmp))$ /$1 [L]
Replace all broken pipe "¦" characters in the code with solid pipes before use; Posting on this forum modifies the pipe characters.
Jim