• Resolved tura910

    (@tura910)


    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you have an index.html file, delete it, or rename it.

    Thread Starter tura910

    (@tura910)

    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?

    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.

    Thread Starter tura910

    (@tura910)

    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. 😛

    Thread Starter tura910

    (@tura910)

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

    Thread Starter tura910

    (@tura910)

    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. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘index.php vs. index.html’ is closed to new replies.