Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

images not displaying properly with mod_rewrite

4:06 am on Sep 10, 2003 (gmt 0)

New User

10+ Year Member

joined:Aug 25, 2003
votes: 0

with rewrite rules
i am getting problem in displaying images properly in one of my subdomain's.

RewriteEngine On
RewriteBase /
RewriteRule ^/catalog/StandProducts/$ /modules.php?name=News&file=subPage&sid=55

images are there under images folder in /

modules.php file is processing correclty.

when i have seen RewriteLog file

for images passthrough is taking as /home/virtual/fst4/var/www/html/catalog/

converted rewrite taking as /catakig/StandProducts/images/image1.gif

what is the problem?

is there is any problem in coding?.
it is a php-nuke's code.

5:03 am on Sept 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


You have effectively "moved" the existing pages by using mod_rewrite.

I would recommend that you check the pages to make sure that they use absolute for the images, and not relative URLs, such as "../images/image1.gif".

You may need to change the links to the images, or perhaps add another rewrite to "correct" the image URLs.

The above is just a guess. Understand that it is impossible for me to "know all about" your site, how it is set up, and how the scripts work. If you need this fixed quickly, you may want to hire a local expert who can sit down with you and fix your site, and explain the problem to you.