Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Page is not loaded correctly Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ap7256
Newbie
Newbie


Joined: 16 May 2008
Online Status: Offline
Posts: 2
Posted: 16 May 2008 at 1:06pm | IP Logged Quote ap7256

Hi,

I have a couple of <div> elements on my page. They display images. If I open the page using its original URL everything looks OK. But if I open the same page using a rewrite rule then those images are not on the page and I see a "error on page" icon in the bottom left corner of the browser.

So the original URL looks like this:

www.domain.com/file.asp?smbl=GE  (the page opens OK)

The rule is:

RewriteRule  /symbol/(.*)  /file.asp\?smbl=$1

So when I open the page like:

www.domain.com/symbol/IBM

the page opens without those images and gets me the error.

What could be wrong?

Thanks

 

Back to Top View ap7256's Profile Search for other posts by ap7256
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3503
Posted: 19 May 2008 at 3:50am | IP Logged Quote Anton

Please add the following conditions before your rule:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum