Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why i could not dispaly a image?

Status
Not open for further replies.

xbl12

Programmer
Dec 12, 2006
66
Hi;
i am trying to display a image, but why i could not do that, is it the problem that i use the mod_rewrite
rule?

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>
 
Your post has a typo in "dispaly" below, is that in your actual code?

RewriteRule ^([a-z]+)/([0-9]+)/$ /dispaly.php?page=$1 [L]


D.E.R. Management - IT Project Management Consulting
 
Thanks you, you are right. the spelling is wrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top