Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Home Page Redirection

    Quote Originally Posted by DrByte View Post
    Talk to your hosting company about the correct way (on their server) to change your domain's DirectoryIndex to "index.html index.php" instead of "index.php index.html"
    I ask my host provider (Godaddy), they told me that .php file has a higher priority within operating system. So it doesn't matter whether they change the directoryindex.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Home Page Redirection

    Godaddy strikes again ... best suggestion? Find another host.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Home Page Redirection

    Quote Originally Posted by wilson_li View Post
    I ask my host provider (Godaddy), they told me that .php file has a higher priority within operating system. So it doesn't matter whether they change the directoryindex.
    If they can't give you a way to change the DirectoryIndex setting within your own domain, then they have no clue what they're doing and have no business being in the webserver hosting business.

    Run. FAST.

    Seriously.



    In the meantime, add this line to an /.htaccess file in the root of your site: DirectoryIndex index.html index.htm index.php
    Whether that works or not, get a more useful host who knows what they're doing.
    .

    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.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Home Page Redirection

    Aside from the technical issues, you do realise that the current HTML index page will render you a ZERO page rank on Google... The links to anywhere are embedded in a flash file (that took 22 seconds to load on my browser - despite the fact that I have a superfast fibreoptic connection).

    Google will get to that (if it is your landing page) and then stop dead in its tracks. It cannot go anywhere into the site, because there is no mechanism for it to do so.

    A further consideration is that the HTML landing page will be invisible in all handhelds that currently deny flash content (all Apple iPads, and a few androids too).

    So...

    • You have a page that takes so long to load that nobody will bother waiting.
    • You have a page that Google will completely ignore
    • You have a page that an increasing number of mobile internet viewers will never be able to see.


    Now... ditch this silly plan and get on with the task of making ZC your proper site... or perhaps you have no real interest in making any sales?

    ... and if you can, get out of GoDaddy... they do not know how to configure servers to run eComm properly...
    20 years a Zencart User

  5. #5
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Home Page Redirection

    These guys are right on two counts. Count one: When I built my first Zen Cart site I wanted to do an .html landing page and ran in to the same thing. Contacted my host who immediately changed the priority for my site. Any good host should be willing to do so.

    Count two: I soon discovered that having a landing page was a stupid idea, and nuked it.

  6. #6
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Home Page Redirection

    Thanks guys

    I cannot locate the ./htaccess file in my root directory. However, there are some .htaccess files under the /pub, /media, /includes, /image, /extra ...... Do I need to add "DirectoryIndex index.html index.htm index.php" to each of them? Or I only need to create another blank ".htacess" file and add this line?

    One more thing, can I add the line syntax like that :

    (DirectoryIndex index.php?page=page1)

    Thanks

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Home Page Redirection

    You would just add your own new .htaccess to the root of your site.
    Don't touch the other ones, as it's irrelevant in those folders.

    No, you can't add other parameters. Just the filenames: index.html index.php etc
    .

    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. Replies: 2
    Last Post: 5 Aug 2011, 01:49 PM
  2. Page redirection
    By chandroo007 in forum General Questions
    Replies: 3
    Last Post: 29 Oct 2010, 06:57 AM
  3. Replies: 3
    Last Post: 25 Aug 2010, 05:45 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