levani01
Member
Posted 2 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
What kind of server are you using: Windows or Linux?
levani01
Member
Posted 2 years ago #
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.