Webmastersite.net
Register Log In

after apache mod_rewrite
background.png not working

Comments on after apache mod_rewrite

finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted May 01, 2006 - 6:37 AM:

After setting up apache mod_rewrite URL rewriting, my background.png image seems to be showing on every page except "display links".

Error on my part I'm sure confused
Does this sound familiar to anyone who could maybe tell me where I went wrong or what I forgot?

Thanks folks
Jim
3.3.13
http://www.finsandfur.net
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 01, 2006 - 2:30 PM:

I presume you've specified the image as a relative location, relative to http://www.finsandfur.net/ . When you're viewing http://www.finsandfur.net/Fishing/Outfitters , the image isn't located in a subdirectory of that url. You need to make it an absolute url.
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted May 01, 2006 - 2:59 PM:

I'm not completely sure I understand.

I haven't specified anything Paul.
I simply replaced the stock image with my own, and in it's original location.
It worked before I converted to Url Writing.
I assumed it would continue to call for it from the "templates" directory.

Jim
scriptwiki
Member

Usergroup: Customer
Joined: Aug 04, 2005

Total Topics: 11
Total Comments: 47
1 of 1 people found this comment helpful
Posted May 01, 2006 - 4:35 PM:

You need to make the link to the PNG absolute. For example, either in the CSS file or the wrapper.tpl, or main.tpl the link to the background should be http://www.finsandfur.net/background.png or www.finsandfur.net/template...tes/default/background.png not just background.tpl.

Understand now?
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted May 01, 2006 - 5:52 PM:

I understand what I need to do now, yes, thanks much...done it and of course it worked.nod

But what I don't understand is why the tool bar (search - options - log out) held it's image on all pages, and both images originate from the same directory.

Between you folks and Paul, this support forum clearly stands out from all others. Thanks for putting up with the PHP newbie
wink
Jim
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 03, 2006 - 8:45 AM:

The part of the script that automatically translates it into an absolute url wasn't detecting that spot, due to lack of quotes around it it seems.
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted May 03, 2006 - 10:53 AM:

That makes perfect sense. When I went back and looked at the path for the toolbar image it had changed itself. I said to my self "how'd you do that Paul" grin

One minor bug though, it had called the "images" directory, a "inages" directory. No biggy, THAT one I could handle. nod

Thanks again Paul Much appreciated.
Jim
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.