Welcome to WebmasterWorld Guest from 54.144.124.152

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

images not displaying properly with mod_rewrite

     

gi sreenivas

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

10+ Year Member



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.

jdMorgan

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

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



gi_sreenivas,

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.

Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month