Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2008
    Location
    NY, USA
    Posts
    2
    Plugin Contributions
    0

    help question .htaccess file in root directory- yes or no?

    I am about to install ZC to the root folder.

    When this folder was created by my web host, an "index.html" file was created.

    I am assuming that after I install ZC and set it up, I should delete the "index.html" file so that the cart is the home page via the "index.php" file. I got that info from searching this forum, and I do thank those who provided answers to us Zen-challenged individuals...

    There is currently no .htaccess file in the root. Once I install ZC to the root, should I have one there? If so- exactly what should be included in the file? I have looked at many of these files in the various places in the ZC folders, but there are many variations, and I am not sure what really needs to be in there, if anything at all...

    I tried this once before, using the file manager in the cp on the web host, and all it did was make it so that you could not access the front public end of the site without entering a user/pass- which is definitely *not* what I wanted...

    So- Do I need an .htaccess file in the root? Even if there is no "index.html" file there? What should be in the file if I need it?

    Thanks very much. This forum is a great wealth of info, and I plan to read every last thread when I have the time!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: .htaccess file in root directory- yes or no?

    In the purest sense, no, you don't need a .htaccess file in your root folder in order for Zen Cart to work.
    You can add one later if you need certain specific functionality, but Zen Cart works fine without one in the root. Otherwise it would come with one ;)
    .

    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.

  3. #3
    Join Date
    Nov 2008
    Location
    NY, USA
    Posts
    2
    Plugin Contributions
    0

    help question Re: .htaccess file in root directory- yes or no?

    This place is great. Really.

    I was "reasonably" sure that I didn't need one there(root), since the documentation says that they are located in folders containing "index.html" files, and I'll actually be deleting that file from the root, once I have everything in a reasonable state.

    I was more concerned about it from a security standpoint, because I don't have a full grasp on exactly what the file does. However, having read a copious amount of threads on the subject, it seems that if I were to simply add the one, very general file that's listed in the security documentation, it would actually shut the site down again, since it blocks php, and I need that one "index.php" in the root to be available for the front end...right?

    ...It's a lot to grasp in a short amount of time, but I think I'm getting it...

    ...did I mention that this place is great?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: .htaccess file in root directory- yes or no?

    Quote Originally Posted by ttoonz View Post
    it seems that if I were to simply add the one, very general file that's listed in the security documentation, it would actually shut the site down again, since it blocks php, and I need that one "index.php" in the root to be available for the front end...right?
    Right.

    The documentation is referring to "where index.html" files are supplied with Zen Cart. In the simplest sense, anyway.
    .

    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
    Nov 2008
    Posts
    32
    Plugin Contributions
    0

    Default Re: .htaccess file in root directory- yes or no?

    so should I delete the .htaccess file? It was problematic before and I had to put .htaccess_OFF, but should i delete it altogether?

  6. #6
    Join Date
    Nov 2008
    Posts
    32
    Plugin Contributions
    0

    Default Re: .htaccess file in root directory- yes or no?

    ps ttoonz is right, this forum is very very helpful indeed.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: .htaccess file in root directory- yes or no?

    Quote Originally Posted by christophert View Post
    so should I delete the .htaccess file? It was problematic before and I had to put .htaccess_OFF, but should i delete it altogether?
    That depends entirely on how your hosting company has configured your server. They are the ones who need to answer that question, based on the content of the specific .htaccess file you're referring to vs the rules they've configured on the server for allowed .htaccess content.
    .

    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.

 

 

Similar Threads

  1. shoppingcart.php file in the root directory
    By Laki in forum General Questions
    Replies: 4
    Last Post: 19 Jan 2016, 10:39 PM
  2. htaccess in root
    By familynow in forum General Questions
    Replies: 2
    Last Post: 16 Nov 2011, 04:22 PM
  3. htaccess file in the main directory (custom question)
    By eurorage in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 17 Feb 2011, 05:54 PM
  4. .htaccess file for root directory needed
    By samar777 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 28 Jul 2010, 03:13 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR