Forums

Permalink not updating .htaccess "no input file specified' (25 posts)

  1. wahwebmommy
    Member
    Posted 2 years ago #

    Hello,

    I've recently installed WordPress 2.3 on my server. It's working well if I use the default Permalink setting. I'm trying to change this to Date and Name Based, but it has not been working (anything other than default causes errors).

    When I update the permalink structure, it tells me "Permalink structure updated." However, when I click on any of the links on the site, though, I get the error "no input file specified". Only the home page works ok.

    I've reverted back to Default Permalinks for now, but my site is http://www.wahwebmommy.com/

    I've been through tons of support docs here on WordPress and also on Google, but nothing I've tried works. It seems that the .htaccess file should be automatically updated (going by the success note given in the admin once I update permalinks). However the .htaccess file remains unchanged.

    I've started out with both a blank .htaccess file, as well as a file with the following as the only text in it (as suggested by my hosting company):

    RewriteEngine On

    The .htaccess is chmod 666 as suggested in the support files (yes, I've read this page: http://codex.wordpress.org/Using_Permalinks as well as about a million other posts ;) )

    I've found several lines of code in other support posts / sites / etc. and manually added these to the .htaccess file, but none of these work either.

    I would think if the file were not automatically updated by WordPress, that it would show me the correct code to manually enter into the .htaccess file myself, but again, it says that it was successfully updated.

    I spent a good half an hour on the phone w/ tech support from the hosting company, but they could not figure out the problem either. (Overall, though I've spent all day so far trying to figure this out, lol.)

    Below are some of my server specs that might be helpful:

    mod_rewrite = enabled
    AllowOverride = enabled
    FreeBSD 4.7
    Perl 5.6
    PHP 4.4.4
    Zend Engine 1.3
    Apache 1.3.33
    MySQL 4.0
    WordPress 2.3

    I'm hoping someone can help me out, because I'm at a complete loss as to why the permalinks aren't working.

    Help!

    TIA :)

  2. wahwebmommy
    Member
    Posted 2 years ago #

    Anyone?

  3. woordenaar
    Member
    Posted 2 years ago #

    same problem over here, before upgrading it worked fine, after the upgrade it broke.

  4. woordenaar
    Member
    Posted 2 years ago #

    Silly thing is: permalinks for category is working fine, but rss and individual permalinks don't work

  5. wahwebmommy
    Member
    Posted 2 years ago #

    Think it's a bug with 2.3? This was a fresh install (I setup hosting within a day or two after 2.3 came out, so it was started from scratch... although I did import the content from my wordpress.com hosted blog).

    It's seriously driving me nuts trying to figure it out, lol.

  6. woordenaar
    Member
    Posted 2 years ago #

    Maybe a bug in combination with server specs...
    @wahwebmommy: did you try to manualy place the code into the .htaccess? I did, but even that failed me...

  7. wahwebmommy
    Member
    Posted 2 years ago #

    Do you have similar server specs as I do?

    The strange thing about the code is it doesn't give me the code, because it acts as if it did it successfully. I did find several sample codes doing searches online. I must have tried at least 4-5 of them (manually into .htaccess) but still no luck.

  8. woordenaar
    Member
    Posted 2 years ago #

    I've got another blog on the same server, but not upgraded to 2.3. That one works fine. So I guess there's some sort of minor bug in 2.3

  9. woordenaar
    Member
    Posted 2 years ago #

    Yes! I've got it working!!!
    On Options > Permalinks, is a section "Optional". It's not SO optional. After upgrading it mentioned for category's index.php/file (I've got the PATHINFO permalinks), I don't want "files" so I altered that to index.php/ Now that I've changed to index.php/_/ (or leave it blank which gives the standard "Category" subpath), its all working again.
    So use this code in your .htaccess, check your Category Base (and maybe you're Tag Base) and let me know of it works.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  10. wahwebmommy
    Member
    Posted 2 years ago #

    That's awesome - congrats! :D

    Maybe I'm not doing this right, but it didn't work for me, though. :(

    Under Common Options, I've selected "Date and Name Base" which displays this in the custom field:

    /index.php/%year%/%monthnum%/%day%/%postname%/

    Then down in the Options: Category field, I tried both of the following options:

    index.php/

    also tried

    index.php/_/

    I also put the code you pasted above into my .htaccess file. I already had a RewriteEngine On line - the hosting company said this should be the first line, but don't know if it's necessary since it's repeated in the code below. My entire .htaccess file looks like this:

    RewriteEngine On
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Still no luck though.... Hopefully it's something quick and easy that you can see I'm doing wrong? Help!

    TIA

  11. woordenaar
    Member
    Posted 2 years ago #

    Skip that first RewriteEngine On
    I tried index.php/ but thats was causing the error, now I use the index.php/_/ and that works fine for me, leaving it blank makes it look like index.php/category
    We'll get this fixed.

  12. wahwebmommy
    Member
    Posted 2 years ago #

    Thanks so much for your help!

    Still a no-go, though. I notice when I type in

    index.php/_/

    It changes it to:

    index.php/_

    Still gives the No input file specified error.

  13. woordenaar
    Member
    Posted 2 years ago #

    That change is correct.

    Any plugins that could interfere? (just to make sure that thats not the problem)

  14. wahwebmommy
    Member
    Posted 2 years ago #

    I just disabled all of my plugins and went back to the default theme, but still no go.

    I wonder if it would help if exported my post info... deleted everything incl the databases and start over from scratch?

    ugh!

  15. woordenaar
    Member
    Posted 2 years ago #

    No, there's nothing wrong with your database. If it were, it wouldn't work with the "ugly" permalinks.

  16. wahwebmommy
    Member
    Posted 2 years ago #

    Well, your right - that didn't work. At least I can't say I didn't try everything, lol. That's another hour I'll never get back :P

  17. derfinatrix
    Member
    Posted 2 years ago #

    Im having even worse of a problem..

    I cant even get to my admin controls.

    It just says 'no input file selected'

  18. woordenaar
    Member
    Posted 2 years ago #

    @wahwebmommy: youre server specs are okay, so is your database. It has to be something in your WP settings, so check and re-check all your settings start with default settings and all plugins off, and then step by step turn things on.
    Takes another hour...

  19. wahwebmommy
    Member
    Posted 2 years ago #

    Yup, I did that too - when I went back to scratch and reinstalled, I did it with zero plugins and the default template, etc. Tinkered around with different permalink settings, but nothing worked, so I put it back to the way it was (theme, plugins, etc.)

  20. WayneSmallman
    Member
    Posted 2 years ago #

    Count me in on this problem, guys.

    I and several really helpful friends have spent much of today troubleshooting this one issue.

    We're pretty sure this is a WordPress thing, in combination with some server configuration issues thrown in for good measure...

  21. wahwebmommy
    Member
    Posted 2 years ago #

    It seems like too much to be just a coincidence with all of us w/ the same problems and same/similar hosting specs... Is there any way we can contact WP directly for support on this?

  22. chipseo
    Member
    Posted 1 year ago #

    Just thought I would mention that I was having the same problem and I found out that I had accidentally left a forward on and even though the ip address was pointed to the wordpress blog the forward messed up the permalinks.

  23. Sam_a
    Member
    Posted 1 year ago #

    I'm not sure I understand your situation, but -- I think you should either

    • Use "pretty" permalinks (without index.php/ in your structure) and put Wordpress's RewriteRules in the .htaccess file; or
    • Use PATHINFO permalinks (starting with index.php/) and keep Wordpress's RewriteRules out of your .htaccess file

    The "Category Base" field should be either empty or have a simple word like "categories", never "index.php".

  24. kurtposer
    Member
    Posted 1 year ago #

    Wow! There were many failed attempts and one successful one. I am experiencing the exact same problem and am both pleased that it isn't me and frustrated that a clear solution hasn't been posted. Maybe one was, but then clouded up with future comments. Could someone post the contents of their entire .htaccess file, for a site that uses Date and Name based permalinks that functions properly?

    Thanks to all for the help.

    Kurt

  25. bustherh
    Member
    Posted 1 year ago #

    I had this problem when I added the line to my .htaccess:
    AddHandler application/x-httpd-php5 .php
    to get another program to work.

    When I removed the line the problem went away. Maybe it is something with PHP 5?

Topic Closed

This topic has been closed to new replies.

About this Topic