Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default URL to directory does not launch index.php

    I am a bit embarassed to have to ask this, but I don't seem to be able to solve this little issue on my own.

    I just installed a new ZenCart store, and it appears to have installed without issue. However, when I attempt to access either the store front or the admin page, I must manually type in the index.php file, the home page doesn't load with only the directory.

    i.e. typing http://72.52.169.15/store does not work, however http://72.52.169.15/store/index.php does. While it seems possible that the fact that I don't have DNS setup for this site yet could affect it, I don't see how. Also, when going to http://72.52.169.15 directly, the index.html home page does load automatically.

    My guess is that there is an htaccess file somewhere that isn't working in my favor, but I don't know where to start looking - anyone have any ideas?

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: URL to directory does not launch index.php

    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: URL to directory does not launch index.php

    Awesome, that did the trick - however it leaves me with an interesting question, how come I haven't had to to do that in the past?

    I have Zencart installed at www.psicylinders.com/zencart. When typing that into the address bar without the trailing slash, IE adds it for me and brings up the page. Any thoughts on why it doesn't do that for me with this one?

    Thanks a ton for your help - I have the issue solved with that slash, now it is just me trying to understand the 'whys' of everything.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: URL to directory does not launch index.php

    It's probably the DNS not yet propagated.

    Apache will do a "rewrite" if it does not find a file of /store. When it does the rewrite, it will use the 'servername' defined in the main apache config: httpd.conf, which is probably the domain name and not the IP addresss. If the nameservers aren't yet pointing to the new server, then http://72.52.169.15/store will be rewrote to http://www.thedomainname.com/store/ --- and won't find the file.

    So it's the webserver doing the rewrite, not the web browser. That's why it's best to always include the trailing slash if you mean a directory.

    At least, that's what my webmaster says :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Idea or Suggestion Re: URL to directory does not launch index.php

    That makes perfect sense based on what I am experiancing! Thanks a ton!

 

 

Similar Threads

  1. Replies: 5
    Last Post: 20 Jul 2011, 02:24 PM
  2. Replies: 5
    Last Post: 5 Jun 2010, 11:18 PM
  3. How does index.php know if install has been run or not?
    By mtoboll in forum General Questions
    Replies: 3
    Last Post: 9 May 2007, 03:02 AM
  4. /index.php does not comes
    By vr4indian in forum Installing on a Windows Server
    Replies: 1
    Last Post: 30 Oct 2006, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg