Forums

[resolved] index.php vs. index.html (7 posts)

  1. tura910
    Member
    Posted 2 years ago #

    I am sure there is a very simple answer to this question. If I type cockydeals.com/index.php the page loads fine. But if I type just cockydeals.com it opens a blank page? I cannot find the answer anywhere so I assume it is something so incredibly simple that everyone else already knows. Help?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    If you have an index.html file, delete it, or rename it.

  3. tura910
    Member
    Posted 2 years ago #

    I deleted it. No change. I read online that I need to put this in my .htaccess file.

    RewriteEngine on
    RewriteRule index\.html index.php [NC,R]

    I have GoDaddy hosting. The file is not in my Root folder. So do I have to create a new one? What does it look like?

  4. The Debil
    Member
    Posted 2 years ago #

    If you have php installed on your server, you shouldn’t need a .htaccess file.

    Rename the .htaccess file to something like: xxx.htaccess - see what happens then, you haven’t lost it then - its still safe.

    Be careful about changing the content of your .htaccess file unless you know what you are doing - what I can tell you is some .htaccess configs interfere with php files.

  5. tura910
    Member
    Posted 2 years ago #

    Well, I just plain didn't have a .htaccess file at all. I found online what to put in one. Here's what I got:

    AddHandler server-parsed .php
    AddHandler server-parsed .php4

    # -FrontPage-

    IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName http://www.example.com.au
    AuthUserFile /var/chroot/home/content/f/r/e/frenzix1/html/_vti_pvt/servic e.pwd
    AuthGroupFile /var/chroot/home/content/f/r/e/frenzix1/html/_vti_pvt/servic e.grp l>

    I made that file, uploaded it, and now the site actually works! I just hope there is nothing in there that is going to mess up anything else. :-P

  6. tura910
    Member
    Posted 2 years ago #

    Oh.. now that I'm looking.. some of that is definitely wrong.. heh

  7. tura910
    Member
    Posted 2 years ago #

    Okay, I just took this junk out and it still works good.
    AuthName http://www.example.com.au
    AuthUserFile /var/chroot/home/content/f/r/e/frenzix1/html/_vti_pvt/servic e.pwd
    AuthGroupFile /var/chroot/home/content/f/r/e/frenzix1/html/_vti_pvt/servic e.grp l>

    All better. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags