WordPress.org

Ready to get started?Download WordPress

Forums

"No input file specified" solution (2 posts)

  1. Doodlebee
    Member
    Posted 6 years ago #

    I just wanted to post something here - it's not a question. I just installed WordPress for a client (yeah, a paying one), and I was having a *severe* issue getting the blog to show up. I installed/uninstalled 4 times, dropped the database each time, blah blah, fresh installs on a Linux server. Every time, I would get the "No input file specified." error when trying to view the site.

    No, I didn't mess with permalinks, and nothing was showing up in the error logs - this is brand-spankin' new...don't even have the plugins installed yet.

    I'm working on the site "incognito", meaning there's already a static site at "index.html", but I'm working from "index.php", so I changed the Blog URI to "http://bloghere.index.php" so I could work until the time came to make it live.

    The problem was, when I viewed the page, WordPress would instert a trailing slash after the url...so instead of "http://www.sitename.com/index.php" I was getting "http://www.sitename.com/index.php/". The former, I could see the site just fine, but the latter would result in the error. So for some reason, that trailing slash was royally screwing things up.

    Well, I fixed it, and I've seen a couple of others who've noticed this issue as well, but no solutions. So I'm going to share mine.

    In the .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteCond %{REQUEST_URI} !/$
    RewriteRule (.*) $1\.php [L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ /$1 [R=301,L]
    </IfModule>

    That removes the trailing slash at the end. This is for the default permalinks only - not any custom format. If you want a custom format, you can take the above and run with it to try and figure out how to fix. But I only needed the default (for now), and the client's paying me by the hour, so I don't have time to mess with it and see how to make it work with custom configurations.

    But there, hope it helps someone else with this issue.

  2. Mizar5
    Member
    Posted 6 years ago #

    hi, i have a website named http://www.mizar5.net (now directed to its guestbook) and it runs on WordPress since 2005. since yesterday, the 'no input file specified' message shows up and nobody's done anything to cause that. all i did was post an entry, as usual. that was it.
    i can't fix codes, can only reproduce and copy/paste, but have no clue what's what, where and why.

    so, i am looking for a solution to get it fixed.
    also, when i try to download the folder that has this whole wordpress mizar5 module, (as a back-up), it says access denied, i have no permission of the server to download the index.php.

    but there is no index.php.
    if i look via my FTP/Fetch, i see nothing. if i look via Presentations and editor via the dashboard (i still have access to that area and see every post as in how to edit), i can see the code to the index.php page. but it doesn't show in the folder in the http://FTP....

    every solution i see in here, is for problems that occurred when people changed stuuf, or renewed and such. i haven't changed or updated anything. i still intend to, but Mizar5 worked fine the way it was. until yesterday.

    i hope someone can help me,
    cheers,
    Gina/Mizar5

Topic Closed

This topic has been closed to new replies.

About this Topic