• Resolved sccoder

    (@sccoder)


    I fear I should’ve never loaded the .htaccess file and that that is what caused my problem because after doing that last night, I cannot access any of my posts via the internet or the admin panel. Even “View” for existing posts from my “Manage>Posts” panel responds with “No input file specified”. Going to my blog URL now displays the directory listing (so I guess other people would just see the “No input file specified” msg since I’m logged into and of course can see my own directory). If I click on the ws-login.php file at this point, it will pull up my posts minus any WP software running (no theme anyway) but of course this ain’t good.

    I just deleted the .htaccess file from my blog sub-dir and re-submitted my sitemap; will that help and is there anything else I can do besides wait for the next pass of pinging services? Or do I need to reload WP and if so, does that give people access to my past posts (I don’t think this is the solution…) TIA.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Moderator James Huff

    (@macmanx)

    What do you mean by “loaded the .htaccess file”? Whould please list what you did, step-by-step, to cause this problem?

    Thread Starter sccoder

    (@sccoder)

    uploaded .htaccess to the host server last night

    today all my posts are gone from public access , I can see them in the admin panel but cannot access them either

    apparently, I should’ve never loaded it, (I read a million posts saying if your host is using an apache server… well, they never answered so I guess I found out) so now that the damage is done, how do I fix it? tia

    Moderator James Huff

    (@macmanx)

    What was in the .htaccess file when you uploaded it? What did you do after you uploaded it? What were you trying to accomplish by uploading it?

    Check that your hosts didn’t move any files around.
    Check that all the files are actually there and none have a filesize of zero.
    Check the server error log

    I don’t think the .htaccess is the cause here.

    Thread Starter sccoder

    (@sccoder)

    I was trying to get my permalinks working… I want users to be able to click on one of my stories when I leave a link to it outside of my blog somewhere and go to that post in my blog which it already did but they wound up reading the post on it’s own page. Can it be setup so that they see it while it is in my blog amongst all the other posts around it?

    Basically, if I just posted a blog story 3 posts ago, and then left that link at another forum, comment area, serp result, whatever, I would like for the user to come back to that blog location which would still be on my main page because it is only the third post down, not to a page that has just that one story.

    Okay, here’s the .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ – [S=35]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /blog/index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /blog/index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /blog/index.php?author_name=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/?$ /blog/index.php?year=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]
    </IfModule>

    # END WordPress

    Again, I guess I screwed it up instead. I grabbed this from the original sub-dir my blog was in before I moved it from /Wordpress/ to /blog/, my hoster put it there, not me, although I’m sure I questioned them about it (although they didn’t actually respond to me).
    TIA

    Thread Starter sccoder

    (@sccoder)

    podz, how do I know what files were possibly moved around?
    I’ll check for zero & the log now. thx

    I don’t think what you want is related to permalinks.
    If you don’t want them (=readers) to go to a specific post – give the main URI of the blog, and that’s it.
    To leave a “permalink” (BTW, it means permanent link to the post) that goes to your index and still showing the post there… I guess you are missing something here. What if I find that link you left after a year? How do I find that specific post?

    Thread Starter sccoder

    (@sccoder)

    there are about 17k of stuff in the error log but no zero sized files in the directory

    Since I just uploaded that .htaccess file last night, I can’t help but think that that is the source of the problem I’m having today but I wouldn’t know how to check what files they may or may not have moved anyway so wouldn’t a WP reinstall start me over but keep my data?

    You can upload new files of the same version – just don’t try re-intstall: it will ask you to delete/clean the database ?? where all your content is.

    Another question: what was the permalink structure you put in on the Permalinks setting admin page?

    Thread Starter sccoder

    (@sccoder)

    I do want them to go to a specific post, but not while it is on a page by itself if possible. You’re right (obviously), I goofed on the permalink stuff.

    But all of that doesn’t matter right now, my blog is completely down with the error msg being displayed that I started this with “No input file specified” so how do I get it back up? TIA

    Thread Starter sccoder

    (@sccoder)

    guess I’m bumping, sorry moshu

    /index.php/%year%/%monthnum%/???y%/%postname%/

    lets try that again

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

    take the first node out?

    by uploading files of the same version, can I upload my local Wp copy (saving all my theme, etc. settings) or do I need to run from the WP install site? TIA

    If you cannot access the admin panel to change/delete the permalink structure, try to go into database via phpMyadmin and in the options table around row 40 is the permalinks structure: delete the values from there.
    With that and with the .htaccess file deleted your blog should revert to the default permalinks = example.com?p=xx

    Thread Starter sccoder

    (@sccoder)

    I was using the above values successfully before although I may have just added the first node which is why I asked about that last post. I just grabbed that from the admin panel so yes I can get to it, just not the posts (as they should be seen) so just to be clear, are you saying to clear the permalink structure form box out and delete the .htaccess file (already did a few minutes ago) because I may have added the index.php sometime over the last few days but I definitely added the .htaccess file last night and today is the problems. So when you say in your last sentence that it will revert to the default permalinks, my real problem is getting my blog back, not the permalinks, are we talking about the same thing here?

    Yep.
    1. Permalinks with “index.php” at the front work without any kind of .htaccess file.
    2. Deleting the permalink structure either on the admin > Permalinks page from the fields, or – when admin panel is not accessible – directly in the database
    + deleting the .htaccess file should result in the default link/url settings as I wrote above.
    Warning! Always backup the database before playing with it – I have to tell this to avoid the complications ??

    Thread Starter sccoder

    (@sccoder)

    Okay but I’m still confused. I deleted the .htaccess file from the host server and the permalink structure but I still only see the directory, no WP. So if I don’t backup the DB and I reload WP, the history is gone?

    The permalink structure I’m using (just tried using it again) is what is listed right on the permalinks panel so isn’t it okay to use it (like I was before)?

    What needs to happen (from the host, ping services etc.) before I know that this didn’t work? Because it just now didn’t so what should I be waiting for? TIA crash-course-learning

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘“No input file specified” after loading .htaccess file’ is closed to new replies.