laserfloyd Posted July 21, 2008 Share Posted July 21, 2008 I am truly stumped by this. This is surely a PHP installation question so I hope someone can answer it. I tried a few searches but wasn't even sure how to word the question. So here's the deal. This website http://www.bennettig.com is our main company site. There are php includes for header, menu and footer. So all of the pages are index.php, contact.php, and so on. Everything works fine but there is a problem. I'll demonstrate: http://www.bennettig.com/contact.php pulls up a contact page with the standard info (and a nifty googlemap!) Now, http://www.bennettig.com/contact would also pull up the same page However http://www.bennettig.com/contact/gibberish pulls up a page with all of the elements broken. It's still pulling the contact page code but the paths are all screwed up so the page is broken. The point is, this shouldn't be pulling up that page at all right? There should be a 404 page in it's place. At the very least a page cannot be displayed. You can type anything in the place of "gibberish" it doesn't matter. You can even chain directories like http://www.bennettig.com/contact/contact/contact/contact and the same thing happens. I'd love to knock this problem out. Is it a PHP server setting (php.ini) or is it something actually in the coding? I narrowed it to php when I tested the same thing on a couple of other sites that are .html only. I appreciate any help! thanks, Lewis Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/ Share on other sites More sharing options...
Darklink Posted July 21, 2008 Share Posted July 21, 2008 Have you got some SEO software installed or something? It's probably taking in /gibberish as a URL parameter. Or because it wasn't coded to handle SEO, it's screwing up all the image paths and href links. Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595519 Share on other sites More sharing options...
laserfloyd Posted July 21, 2008 Author Share Posted July 21, 2008 I do have Google Analytics code in the footer.php file. I don't have any specific SEO software installed. The server is a Mac web server by the way. I talked with the admin but he wasn't sure about it and said he'd get back to me. I'm fairly certain it's down to the server being the culprit. Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595525 Share on other sites More sharing options...
Darklink Posted July 21, 2008 Share Posted July 21, 2008 Hmm. I'm really unsure with how PHP acts with Mac so I'm probably not the person to help you here. Google Analytics won't have anything to do with it though. Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595549 Share on other sites More sharing options...
DarkWater Posted July 21, 2008 Share Posted July 21, 2008 Make a .htaccess file and put this in it: RewriteEngine Off Tell me if it works. Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595552 Share on other sites More sharing options...
laserfloyd Posted July 21, 2008 Author Share Posted July 21, 2008 I'll give that a try DarkWater. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595572 Share on other sites More sharing options...
cooldude832 Posted July 21, 2008 Share Posted July 21, 2008 Make a .htaccess file and put this in it: RewriteEngine Off You might not want to do that back up your old .htaccess file first because you said you liked some of the mods ons, they just might not be strict enough. Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595575 Share on other sites More sharing options...
DarkWater Posted July 21, 2008 Share Posted July 21, 2008 Make a .htaccess file and put this in it: RewriteEngine Off You might not want to do that back up your old .htaccess file first because you said you liked some of the mods ons, they just might not be strict enough. I'm thinking he has some server-wide convenience RewriteRules or something. He can set up his own if he knows how then. But I'd assume he doesn't, otherwise he would have thought of it. Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595578 Share on other sites More sharing options...
cooldude832 Posted July 21, 2008 Share Posted July 21, 2008 yeah but most of those mod rewrites people have set from something they downloaded are built to work with a CMS system so I didn't want to see it explode and blow up Quote Link to comment https://forums.phpfreaks.com/topic/115842-page-name-acting-as-directory/#findComment-595579 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.