• Hi all,

    When i change permalink to post name, only my front page works, other page has 404 error ([ redundant link removed ]). I installed wordpress to VPS without control panel.

    I tried to save permalink many time and message was shown “You should update your .htaccess file now.”

    So, i edited .htaccess file directly:…

    # 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

    …so it fail.

    Next, i tried to check the file permissions and set them to 644 (i tried to set them 155, 177 after) for .htaccess. I installed WP htaccess editor plugin to check after set permissions and it’ve still shown:…

    .htaccess file is not writable!
    Your .htaccess file located in /var/www/wordpress/.htaccess can’t be edited by WordPress or this plugin. You can only edit it via FTP.
    If you want to edit it via WordPress check the file permissions and set them to 644.

    Last, i tried to edit httpd.conf file as AllowOverride None -> AllowOverride All and it’ve shown 403 error.

    Help me this case, please.

    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • What web server are you using? Have you enable mod rewrite module? Nginx doesn’tread .htaccess file

    My Name

    (@mhosseini80)

    Hi,
    first of all, How did you change your website permalink? from where?
    I guess if you just update wp-admin > permalinks, you’ll see everything right!

    Thread Starter minhtamkv

    (@minhtamkv)

    @lcf i’m using Apache 2. I’ve enable mod rewite module. Someone told me that can’t use Nginx and Apache at the same time.

    • This reply was modified 3 years, 1 month ago by minhtamkv.
    Thread Starter minhtamkv

    (@minhtamkv)

    @mhosseini80 i changed from plain fomat. I tried to save my update but it’ve till fail.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 Error when change permalink’ is closed to new replies.