Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Simple PHP Application Wrapping Up The Project Deploying The Site

Brian Polonia
Brian Polonia
25,139 Points

Deployed my website to server - doesn't open homepage - but if I navigate to subfolders it works

Hi My web address is www.brianpolonia.com

when you visit that address, in chrome it works. But in safari it doesn't.

All of my files are .php and home page is at root of directory with file name index.php. All other pages are in subfolders and titled index.php just like instructed in the "Enhancing your PHP Application" course.

Any one know the reason why safari might not be opening index.php?

  • Brian

2 Answers

Brenden Konnagan
Brenden Konnagan
16,858 Points

Hey Brian!

Just wanted to let you know I've checked your site via Safari Mobile (iOS 8.1.3) and Safari on Mac (10.10.2).

It appears that your site is loading just fine on both. I also tested against multiple iterations of input for your site and appears to be working properly.

If there is something in particular you are missing let me know and I will check again.

Some thoughts for you:

  • "version: production" appears in the website
  • if you are experiencing some wonkiness with page load I would check server settings. what you described makes me think there is a configuration issue with the server

Maybe this has been resolved already?

Brian Polonia
Brian Polonia
25,139 Points

Hey Brenden!

Thanks for checking on it. I'm guessing it was a DNS thing. The following day when I checked it, it worked just fine. And the "version: production" is just something I plugged into a ::before pseudo on the header just to hint that the site was still in production lol.

Cheers!

  • Brian
William Li
PLUS
William Li
Courses Plus Student 26,868 Points

your site home page loads fine on my safari

Imgur

Are you testing it on a dated version of Safari?

Brian Polonia
Brian Polonia
25,139 Points

Hi,

Thanks for checking! I am testing on version 8.0.2 of Safari.

I just realized that www.brianpolonia.com is working in Safari but it doesn't work when I just write brianpolonia.com. It only shows the first two elements in my header, logo and h1 of my name, with no css applied. However, it does work with or without the www in chrome.

Any idea why this might be? Could it be in my paths? Or maybe its a DNS thing with my host?

Also, how did you add that image to your reply?

Thanks,

Brian

William Li
William Li
Courses Plus Student 26,868 Points

to learn how you post image, you can check out this post https://teamtreehouse.com/forum/howto-guide-markdown-within-posts.

Nope, your home page works all fine on my Safari with or without www, usually the problem you described is related to DNS, but since I am not experiencing the same issue you're having, I can't really say what's wrong here.

Sorry, wish I have a more helpful answer.

Brian Polonia
Brian Polonia
25,139 Points

Hmm, That's interesting...

Thanks for looking into it on your end though. I really appreciate it.

  • Brian