1
votes

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

    
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
    
3
What is your permalink structure?user7780894
try this: go to the permalink setting set it to default and save it, and aging change it to the needed one.Raunak Gupta
What WebServer used? Does webserver environment allow url rewriting (mod_rewrite for Apache, of try block for nginx)?Oleg Butuzov

3 Answers

2
votes

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

0
votes

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

0
votes

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.