• Hi,

    I’m working for a B2B Company and my boss has an old website that he wants to get back.

    I tried to connect to this website but I found this:

    404 Not Found

    Code: NoSuchKey
    Message: The specified key does not exist.
    Key: wp-admin
    RequestId: xxx
    HostId: xxx/xxx/xxxx

    I tried to change the link in Cpanel but nothing change.

    I don’t know which version of WordPress is active on it.

    Does someone know how fix this?

    Best Regards,

    Nathan.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Can you post a link to the website?

    Thread Starter nathanlc

    (@nathanlc)

    It’s this website: https://socialmedialeads.com.au

    In cpanel->file manager or ftp to the site files and check to see if the directory wp-admin is there. Also, look in .htaccess to see if there is a redirect to a different login page.
    Another possibility is there is a security plugin that may be causing an issue. You can disable all plugins by renaming the plugins directory and trying to get in again.

    Hope this helps!

    Thread Starter nathanlc

    (@nathanlc)

    Thanks for your answer and your help.

    I have wp-admin in Cpanel, but I couldn’t find .htaccess because I don’t have ‘Document Root For’ (I saw on the internet that I should find this doc).

    So how can I find .htaccess?

    Yes, maybe it could be plugins, so for disable all plugins, it’s in File Manager too?

    Hi,
    .htaccess is usually in the site root. It’s commonly a ‘hidden’ file so when you launch file manager, if you get a dialog box be sure to select the checkbox to ‘show all files’ (or something like that).

    The plugins directory is in the file system too. Site Root->wp-content->plugins.

    Rename the plugins folder to something like pluginsOFF. You’ll want to rename it back to plugins later. Try this before digging into .htaccess. Low hanging fruit, you know? ??

    Thread Starter nathanlc

    (@nathanlc)

    Hi,
    I found the .htacces in public_html but we have differents website so I don’t know how this work. Because the .htaccess is not talking about “socialmedialeads.com.au”.

    Also, I renamed the plugins folder by pluginsOFF but nothing happens.

    No sorry, I don’t have much knowledge on this…

    If you have a process for fix this, it will be helpful.

    Thank you so much for trying to help me.

    I’m not sure what you mean by “Because the .htaccess is not talking about “socialmedialeads.com.au”.”.
    If in that website’s root directory, then it is for that website.

    Here is a link to what you need to know about htaccess and wordpress.

    Thread Starter nathanlc

    (@nathanlc)

    I’m sorry for my English language, I’m french in an internship in Australia.

    We have HostGator like the host, and on File Manager, we have many websites and just one .htaccess in the section “public_html”, so I don’t understand how this work.

    htaccess looks like good, maybe it’s a plugin, how can I disable all the plugin?

    You need to look at the htaccess in the directory that has the files for the website you’re having trouble with.

    If you don’t have access to the site admin: to disable the plugins you need to rename the Plugins folder as described in a previous post.

    Your english is pretty good. My french is very bad so it might be easier for you to post your question in the french forum as I am not sure I can help you efficiently.

    Thread Starter nathanlc

    (@nathanlc)

    Yes sure, unfortunately, I didn’t found it.

    I did this, I rename but nothing happens and it still not working.

    No worries, you can speak english I understand, I will try to be clear.

    Do you know another way to fix this? Or it’s all you can do for me?

    Again, thank you so much for your time and your help.

    Ok. If the site root doesn’t have an .htaccess file then it needs one.

    Open up notepad and paste the following:

    # 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

    Save the file as “.htaccess”. Be sure there is a dot before htaccess and be sure it doesn’t end in ‘.txt’. If you save with the quotes, that should do it.

    Then upload to the site root directory, not directly to public_html, unless that is the site root. If you have multiple sites on that hosting account, it is likely a subdirectory in public_html.

    Thread Starter nathanlc

    (@nathanlc)

    I did some progress when I researched file .htaccess in all the files in Files Manager, I found a file in: /public_html/socialmedialeads.com.au/.htaccess

    After I tried to access to this but this file resend to all files in: /public_html/socialmedialeads.com.au

    And I don’t have the file .htaccess, but when I tried to create this files, Files Manager said to me:

    ERROR: Could not create file “.htaccess” in /home1/abacus/public_html/socialmedialeads.com.au: File exists

    So I didn’t found “.htaccess” however he exists so maybe this file is hidden.

    I’m not exactly sure if you got what you needed.
    I think you are saying you can’t see .htaccess but you think it’s there. Use the previously described method to get it to show. (check ‘show all files’).

    Be sure to have a backup of files before overwriting anything.

    If you are having a lot of trouble getting file manager to work properly, it may worth a phone call to the hosting company to help sort it out.

    Thread Starter nathanlc

    (@nathanlc)

    Thank you, I found the .htacces.

    It is this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    RewriteCond %{HTTP_HOST} ^socialmedialeads\.com\.au$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.socialmedialeads\.com\.au$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^/?$ “http\:\/\/www\.socialmedialeads\.com\.au\/\$1” [R=301,L]

    Could you say me if you see some mistakes?

    I’m not familiar with some of the stuff in there but I don’t see anything directly blocking your access to wp-admin.

    Going back to your original error: When I google the first couple lines, it comes up as an AWS (amazon web services) error. Are you sure hostgator is hosting the site? Or maybe they’re using AWS as a CDN?

    I’m stuck. Maybe call your hosting company for assistance or maybe someone else on this forum has ideas but as of right this second, I’m not seeing what the issue could be.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘ERROR 400’ is closed to new replies.