[PHP]Issue with Permalinks

Grandmaster

Electronica Addict
Political Access
Joined
3 Feb 2002
Messages
10,574
If I enable permalinks on my site, the rotating header does not display. Upon further investigation, I believe that is caused by putting a forward slash in the URL. For example, if you click this , the header will not display. But if you click this, it will.

Anyone have an idea what's causing this annoying problem?
 
I know why. :p.

What you need to go is to the source.

Code:
<img src="header.php" width="865px" height="307px" alt="Random Header" />

Now lets see a browser:

FIrst link: http://ofg.ganai.com/index.php/header.php

Second link: http://ofg.ganai.com/index.php remove index.php and replace with header.php http://ofg.ganai.com/header.php

Basically, you can't use relative URL's. You will have to use full url's, or base path URL's like so:

/header.php (Note: no period, not gauranteed to work with all browsers)

or http://fulldomain.com/header.php
 
not solving it, but why would you put a slash after the filename? is not normal.

Also when you do that none of the pictures are showing. Are they in another directory? maybe putting / in it is messing with the directory structure, since you normally don't use a / for a new directory?
perhaps
 
The /'s automatically get added by Wordpress when I enable permalinks. But what X-istence suggested worked perfectly! Thanks :)
 
Khayman said:
not solving it, but why would you put a slash after the filename? is not normal.

Also when you do that none of the pictures are showing. Are they in another directory? maybe putting / in it is messing with the directory structure, since you normally don't use a / for a new directory?
perhaps

You can put a / behind it so you can add session information and stuff without having google go "Hrm, random ****, sorry won't index" and also, it lets you do stuff like http://url.com/index.php/section/downloads/number/1/comments/add

And then have index.php parse it.

All you need to do is use direct URL's with full domain name and it will work perfectly, otherwise it will not, as the browser will think that it has to add on the "relative" part to what is allready in the browser bar cause it thinks that is the right directory.

Read my above post.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back