Support » Fixing WordPress » Custom permalinks doesn’t work

  • I moved my wordpress installation on a VPS hosting but custom permalinks doesn’t work any more. When I click on a post title it redirect me to 404 Not Found page. It seems my .htaccess isn’t writable and I paste this code manually

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

    as wordpress said but it didn’t help. Can anyone please tell how can I solve this problem?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • What kind of server are you using: Windows or Linux?

    Thread Starter levani01

    (@levani01)

    I’m using linux, centos 5.

    Hi,

    Reset your permalink from wordpress admin area with your desired and add this code in htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Now, check with your blog posts.

    Thanks,

    Shane G.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom permalinks doesn’t work’ is closed to new replies.