• My WordPress is installed in a subdirectory: domain.com/wordpress , When I try to change the permalinks to custom (/%postname%/) I get a “500 internal error”. Checked with the .htaccess and it was blank, I added the follwiong code (hope its the right code..):
    # 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

    Checked, did not work. Went back to the htacess file and it was blank again… Help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • InterServer

    (@interservernet-web-hosting)

    File .htaccess getting blank, this usually means you have no sufficient permission to write changes to the .htaccess file, please check the permission and attributes of the file.

    Also in order to configure the WordPress installation in sub directory, please refer the following WordPress documentation.

    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    Thread Starter aharonzeff

    (@aharonzeff)

    Thanks for your reply!
    My htaccess is set to 644 – is that the right permission setting?
    Also I followed the instructions you sent and changed the line that says:
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
    to:
    require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );
    (adding the “wordpress” directory..)
    but now i got a “500 server error – The website encountered an error while retrieving https://mywebsite/blog/. It may be down for maintenance or configured incorrectly.” Which is slight diffrent from the “500 internal server error” I was getting earlier.

    PLS Help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Permalinks not working – Getting 500 internal error’ is closed to new replies.