• [ Moderator note: moved to Fixing WordPress. ]

    I am trying to change permalink options from Default to Post name and getting this message at the bottom of the page:

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.

    Since I didn’t have a .htaccess file, I created one and added the code mentioned above.

    The problem is that when I add the htaccess file, all the pages in my website get a 500 Internal Server Error…

    What can I do to fix this? I really need to set Permalinks to Post name.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • abletec

    (@abletec)

    Hello, RDC4, & welcome. Please provide your .htaccess file & site url. Yu can copy & paste your .htaccess file enclosed in (backticks), i.e.:

    line 1
    line 2
    line 3

    These would be very helpful in diagnosing the problem. The reason for the 500 error is that most likely you didn’t copy the .htaccess code correctly, or, because it came from a web browser, contains some illegal characters.

    Thread Starter kraky9

    (@rdc4)

    It doesn’t really matter if there is code or not inside the .htaccess file. Even if it blank, the Internal Server Error still persists.

    However here is the code:

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

    And here is the website: https://isismedia.org/

    a2hostingrj

    (@a2hostingrj)

    Since I didn’t have a .htaccess file, I created one and added the code mentioned above.

    Are you sure about that? or was it hidden? I strongly suggest you to check if there was/is another .htaccess

    Also, revert the changes done at the moment. The .htaccess contains a lot of rules, and if there was one before and you just added the lines posted above, you might have removed the previous file with the necessary rules.

    Thread Starter kraky9

    (@rdc4)

    I have double checked and there was no .htaccess file. I tried uploading one blank and another one with that code and there I didn’t get a overwrite message.

    So I don’t understand why a blank .htaccess file would cause an internal server error.

    abletec

    (@abletec)

    Hello again, RDC4. Let’s try a couple things, if we could. First, please change your theme to a default theme (they begin with the word twenty) & see if you can upload a .htaccess file & make the site work. If not, & w/the default theme still in place, please disable your plugins. You can do that by renaming your plugins folder by adding a 1 or a .old to the end of the plugins folder name, either via your hosting provider’s control panel or an FTP (preferably secure FTP) client like Filezilla. Again, see if your site works w/a .htaccess file.

    If not, then please ask your hosting provider if they have mod_security enabled & if they’re seeing any errors that are being triggered by your site. Also, some hosting control panels permit viewing of your site’s error logs. You may wish to go into your control panel & see if this is the case w/yours. Additionally, sometimes there are files, called error.log or error_log, that may be present in the folder where you installed WordPress. If that is the case, feel free to post errors that correspond to the dates that this is occurring.

    Please llet us know if you have questions regarding how to perform any of these steps. We’re happy to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks Issue’ is closed to new replies.