homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

images not displaying properly with mod_rewrite
gi sreenivas

10+ Year Member

Msg#: 378 posted 4:06 am on Sep 10, 2003 (gmt 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.



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

Msg#: 378 posted 5:03 am on Sep 10, 2003 (gmt 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.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved