jitender.k00762
jitender.k00762

Reputation: 11

Wordpress permalinks does not work on server

I have uploaded WordPress website to a new server which is working fine. But Permalinks settings are not working. All other pages returning me 404 error.

and below in my .htaccess file

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

Upvotes: 1

Views: 380

Answers (4)

user3549776
user3549776

Reputation: 1

there's a one tiny trick to update all links if you can access admin .

you just go to permalinks options from settings page and save permalinks to default and after saving it you may change again and update. This will work in most cases for me either its SSL based issue or urls mismatch. don't forget to view .htaccess file if you have old server and having multiple rewrites.

Upvotes: 0

Noman Akhtar
Noman Akhtar

Reputation: 11

Go to "wp-admin", open settings->permalinks and update the permalink settings, it will update the .htaccess file on your server. Hard refresh your site, now all the links will be work perfectly.

Upvotes: 0

jameshenry10
jameshenry10

Reputation: 349

To fix this error one can also try this method:

Open phpmyadmin > wordpress database > wp_options table

Here check first two fields and update option_value with correct WordPress location. After that reload the permalink, hopefully the error might gone

Upvotes: 0

Yulia T.
Yulia T.

Reputation: 151

please check the apache module rewrite.

in a root wordpress folder insert into index.php phpinfo(); and find this string mod_rewrite. If it`s not, tell it your hoster support

Upvotes: 2

Related Questions