• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[PHP]Issue with Permalinks

Grandmaster

Electronica Addict
Political User
#1
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?
 

X-Istence

*
Political User
#2
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
 

Khayman

I'm sorry Hal...
Political User
#3
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
 

Grandmaster

Electronica Addict
Political User
#4
The /'s automatically get added by Wordpress when I enable permalinks. But what X-istence suggested worked perfectly! Thanks :)
 

X-Istence

*
Political User
#5
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 posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,015
Latest member
evaiwhitis