Support » Installation » Why not pointing to index.php?

Why not pointing to index.php?

  • Hello, I’ve got eveyrthing installed with few difficulties. But now I find that when I reference my WP directory (/wp) it doesn’t point to my index and open the webpage. Why is this?
    Do I need to delete some install/config files? It doesn’t seem so but I’m not that familiar with PHP. I don’t want people to be able to access the contents of the /wp directory without having permission. I expected that pointing someone to /wp would automatically call the index.php and open the blog. Why doesn’t it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • If index.php is in that dir, and your browser is not seeing it, then that’s a problem with the host and how they have set up the server.
    Ask them to fix it so that index.php can be served – it’s a small change their end.

    I think you can add a simple line to a .htaccess file thusly:
    DirectoryIndex index.php
    Check out this URL: http://httpd.apache.org/docs/mod/mod_dir.html
    However, like Podz indicates, if your host server is not set up for this, then they must do some geek-stuff at their end.

    I’ve got them on that. I know where my .htaccess file is and I’ve been tempted to tamper with it before. But I’ve not for fear of messing up the front end of my site (the blog will be a subdomain). I’m also used to seeing code clean and my .htaccess is just a big jumble. When it’s clean I can see the logic in it and easily adapt and adjust accordingly. The host has been changing it for me (adding things to allow .rm and .wmv, etc) and they seem to be quite messy about it. So I’m going to wait and see how that turns out after my request.
    On another front, I was wondering if any of the files in that main directory need to be removed or could be removed. Coppermine (the photo album) comes to mind. I just wondered if files in this main page that are open to the world and reveal mySQL information might best be moved or some such.
    Thanks for the feedback!

    php files reveal all to apache, but nothing to anyone else.
    My wp-config.php file has been in the same default position since January…..

    My webhost made the change and it worked perfectly. Best I can tell he made no changes to .htaccess. It appears the same as it did before. From what he said, he made changes on the server end directing requests for that address to that specific file, as he needs to do it with another PHP program recently installed. Perhaps on some hosts changing the .htaccess file does direct the change.
    But with my setup it appears it is host controlled only. In this case, the host is superlative and it is not a problem, although I’d generally prefer the control.
    Understood on the file protections. Thanks for that. And thanks to all for the help. I’m in business I suppose.

    Sounds like they made a change to the httpd.conf file on Apache.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why not pointing to index.php?’ is closed to new replies.