Home › Forums › Back End › Help CSS in PHP crash when putting / in the end of url. › Reply To: Help CSS in PHP crash when putting / in the end of url.
I agree, without more info… removing the forward slash only make sense.. as the OP states without it its ok… pretty straightforward…
+1 for shaneisme for helping.
<hr />
explination to the OP:
if you have a URL of say, http://example.com it visits the default page in the main folder.
if you have a URL of say, http://example.com/ it STILL visits the default page in the main folder.
if you have a URL of say, http://example.com/folder1/ it visits the default page in the folder named “folder1” folder. if there is not a default file in folder “folder1” then your going to get a black white page or error message.
visiting http://example.com/folder1/ is like visiting http://example.com/folder1/index.html
personally on my web servers the default web page is index.php, and falls back to index.html. meaning that IF I visit http://example.com/folder1/ and inside “folder1” there is a file named “index.php” on my server I see that page… if the index.php file is missing but there is a index.html file I see that instead.. but if both are missing, I get a blank white page, or an error… such as “cannot be found” or something.
<hr />
caveat
IF your site fails at the following examples you have larger issues. or no default webpage file in the folder where the URL points.
http://example.com/
http://example.com/index.html/
http://example.com/myFolderName/index.html/
examples that should always fail
http://example.com/myFolderName (with no default files in folder like index.html)
http://example.com/myFolderName/ (with no default files in folder like index.html)
http://example.com/myFolderName/index (with no default files in folder like index.html)
http://example.com/myFolderName/index.