WordPress.org

Ready to get started?Download WordPress

Forums

Custom permalinks doesn't work (4 posts)

  1. levani01
    Member
    Posted 4 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    What kind of server are you using: Windows or Linux?

  3. levani01
    Member
    Posted 4 years ago #

    I'm using linux, centos 5.

  4. Shane G.
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.