Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Strange problem with trailing slash at the end of an url |
|
Author |
|
TimoP
Joined: 09 Jan 2012 Posts: 3 Location: Tarmstedt, Germany
|
Posted: Mon 09 Jan '12 14:08 Post subject: Strange problem with trailing slash at the end of an url |
|
|
hello everyone,
i am new here in the forum. i am using the apachelounge build on my win box.
i installed it with the fcgid_module.
i have noticed, when i add a slash at the end of an url that contains a php script name, then the page layout is destroyed (e.g. http://localhost/index.php/).
when i type in the url normally without the trailing slash (e.g. http://localhost/index.php), the page displays normally.
i think i have misconfigured the fcgid module? or is this a php programming knowledge lack from myself?
on this site i cannot see this behaviour.
when i add a slash to this url: http://www.apachelounge.com/profile.php?mode=editprofile/ the page displays as i expect.
what do i am wrong? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 09 Jan '12 16:14 Post subject: |
|
|
That is about your paths in the html and css
use absolute paths and this won't happen. Start your path with a slash. e.g.
/images/img.jpg
The Browser takes the slash after the index.php as a new folder. So if you images are in images the browser tries to get http://localhost/index.php/images/img.jpg instead of localhost/images/img.jpg |
|
Back to top |
|
TimoP
Joined: 09 Jan 2012 Posts: 3 Location: Tarmstedt, Germany
|
Posted: Mon 09 Jan '12 17:54 Post subject: |
|
|
ahhh, thank you very much mr. blond. i thought, i drilled a security hole ala directory traversal in my server config or so *facepalm*
#############
# Status:
# RESOLVED!
############# |
|
Back to top |
|
|
|
|
|
|