Forums

Permalinks modification: No longer able to access wp-admin or site (9 posts)

  1. lisiparis
    Member
    Posted 4 months ago #

    Hi,

    I changed the permalinks of a Page and now I am no longer able to access my site. I see only the site of the host with an Internal 500 Error. And I am not able to access the admin panel! I am however able to access the ftp server.

    When I changed the permalinks, I used the 'Custom Structure' field and put in 'my site URL/about' instead of the structure tags. It's the first time I do it and I had not read the documentation. Now I see in the doc that I should never put the site URL in the field!

    I have searched the forum already and found some related articles. I have seen that it's possible to reinstall WP and start over. However I did not back up my site so I would like know whether you have a less violent solution. I found the .htaccess file and renamed it but it did not work although in this case, I did not get the website of the host but a line regarding the .php version on the server.

    I would really appreciate anyone who could help!
    Many thanks.
    Lisa

  2. keesiemeijer
    moderator
    Posted 4 months ago #

    Do you have any active cache plugins?
    Can we have a url to your site?

    try:
    - switching to the default theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides.

    - resetting the plugins folder by using FTP or whatever file management application your host provides. Sometimes, an apparently inactive plugin can still cause problems.

  3. lisiparis
    Member
    Posted 4 months ago #

    I haven't installed any plugins so I don't think I have any cache plugins...

    URL: http://brunopeyridieu.free.fr/

    I have tried both of your tips ie renaming the theme folder and renaming the plugins folder in wp-content but the result is still the same, ie I get the website of the host.

    Do you have any other ideas?
    Thanks!

  4. keesiemeijer
    moderator
    Posted 4 months ago #

    Try looking in your servers error logs, and asking your host what the problem might be.

    Can you show us what is in your .htaccess file?

  5. lisiparis
    Member
    Posted 4 months ago #

    Here are the contents of the .htaccess file:
    ----------------------------------
    php 1

    # 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. keesiemeijer
    moderator
    Posted 4 months ago #

    is "php 1" also in your .htaccess? If so remove it. Normally a .htaccess file should look like this: https://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htaccess.29

  7. lisiparis
    Member
    Posted 4 months ago #

    Yes 'php 1' was in .htaccess. If I remove it, nothing changes. Still get the error.

    However I've been reading the French support forum (as it has become obvious that it is a problem with this free French host) and someone said to take out all text in .htaccess and ONLY LEAVE the 'php 1'. Surprisingly this worked for me - at least I can access the home page and log into admin panel. However if I access any of the pages, I get an a 404 File Not Found Error because there's still a problem with the permalink.

    So I went into Settings -> Permalinks to try to reset the permalinks back to default but I can't - it gives me back the host website with 500 internal error. That's quite frustrating because I thought that should do it! Someone suggested that I need to go into PhPAdmin and delete the Permalink entries from the DB...

    What can you suggest?

  8. keesiemeijer
    moderator
    Posted 4 months ago #

  9. lisiparis
    Member
    Posted 4 months ago #

    It's now working!!! Thanks!!! And the permalinks are working as well!

    However as soon as I go into the Settings -> Permalinks screen, even if I don't change the Permalink settings, I get the error screen again and the site will no longer work again. I see that in this case, the .htaccess file has been modified and I have to set it back to the one that works. Of course it doesn't work if I try to change and save the Permalinks either. Why can't I change the Permalinks settings? And why can't I even go into this screen without having the .htaccess file getting modified?

    There is still something not quite right but at least I'm not blocked for the moment.
    Many thanks!

Reply

You must log in to post.

About this Topic

Tags