Forums

htaccess alteration preventing login (12 posts)

  1. Leezak
    Member
    Posted 3 months ago #

    Hi folks

    Read through a lot of questions about people having htaccess problems, but couldn't find any that related directly to the one I'm having. I'll talk you through it in point form...

    - uploaded a video, but discovered half my readers couldn't play it in their browsers

    - got a "helpful" suggestion from a guy who suggested I change the htaccess file, adding a line that would make videos play

    - the alterations to the htaccess file crashed my site

    - luckily, I'd backed up the original file, so quickly placed it back where it was

    - the website itself is now up and running, but every time I go to edit the site at http://www.mysite.com/wp-login/ I get a "Page Not Found" message. It recognises me as being logged in, but won't let me into the back end.

    The lesson about not messing with htaccess files has been learned, but if anyone could help me get back into my site, it would be tremendously appreciated! Thanking you in advance.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    What's left in your .htaccess file now?

  3. Leezak
    Member
    Posted 3 months ago #

    It contains:

    "ftp://mysite:@ftp.mysite.com/mysite.com/.htaccess"

    And that's it. I know it's supposed to contain:

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

    ...but when I tried putting a file with that in it, the whole site went down! And everything I read tells me it should have that latter text in it, adding to my confusion...

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    Why on earth does it have the ftp reference in it!

  5. Leezak
    Member
    Posted 3 months ago #

    I have no idea! But when I access the ftp part of the site and drag the htaccess into TextEdit to see what's in it, that's what comes up.

    (Sorry, I've just that second realised that this is probably not the content of the file, but just what it's showing me instead of the content. If it's not obvious yet, I'm a bit of a novice at all this.)

    Okay, just opened it by pressing the edit button, and I've got:

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

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    That .htaccess file looks fine. Were you using custom permalinks previously? And WordPress was installed in the root folder of the domain?

  7. Leezak
    Member
    Posted 3 months ago #

    Not sure about the custom permalinks, but no on the root folder. WordPress is inside another folder within the site. Could that be causing the problem?

  8. Leezak
    Member
    Posted 3 months ago #

    Just guessing here, but could it be that the htaccess file is pointing to WordPress in a place that it's not? ie: the root folder

    Really need to get into the back end of the site, and can't figure out what's going wrong!

  9. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    That .htaccess file is for a site installed in the root folder of the domain. What is the name of the folder that WordPress was installed into?

  10. Leezak
    Member
    Posted 3 months ago #

    It's within a folder named after the site. When I copy the link for the wp folder, it says:

    ftp://mysite:@ftp.mysite.com/mysite.com/wp-content/

  11. Leezak
    Member
    Posted 3 months ago #

    Is that correct? Sorry to keep bumping, but I'm really, really stumped here. Finding it impossible to wind my way back through this tangle... :(

  12. Leezak
    Member
    Posted 3 months ago #

    Happy ending: I fixed it!

    For some reason, I had three htaccess files. One in the root folder, one in the /mysite.com folder, and -- and I only just found this a moment ago -- one in the wp-admin folder. It was wp-admin one that had the bad edits still in it, so I copied the standard htaccess text, pasted in there, and hey presto, it's working again!

    The mild shame at making so many mistakes throughout this whole thing is offset by the joy at having fixed it! Thanks esmi for your help, and I hope this helps other people with similar problems!

Reply

You must log in to post.

About this Topic

Tags