logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Strange problem with trailing slash at the end of an url
Author
TimoP



Joined: 09 Jan 2012
Posts: 3
Location: Tarmstedt, Germany

PostPosted: Mon 09 Jan '12 14:08    Post subject: Strange problem with trailing slash at the end of an url Reply with quote

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

PostPosted: Mon 09 Jan '12 16:14    Post subject: Reply with quote

That is about your paths in the html and css Wink
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

PostPosted: Mon 09 Jan '12 17:54    Post subject: Reply with quote

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


Reply to topic   Topic: Strange problem with trailing slash at the end of an url View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules