admin管理员组文章数量:1336367
I know this question might be a repeat or duplicate of another post.
I've been getting this error after shortly migrating the domain from http
to https
.
I've been following multiple questions and answers like this one right here but none of them seem to work.
Solutions i've tried:
-> disable all plugins and enable them again
-> change .htaccess
file to the default wordpress
-> change permalink structure to the default one again.
None of the above solutions worked for me now, although they worked in the past for a different website.
All pages give me 404 document not found in the server
except the homepage.
thanks in advance!
EDIT:
The problem does not happen if i use the default permalink structure and if use the following code in the wp-config:
define('WP_HOME', 'https://websiteurl');
define('WP_SITEURL', 'https://websiteurl');
//define('WP_DEBUG', true);
define('CONCATENATE_SCRIPTS', false);
I know this question might be a repeat or duplicate of another post.
I've been getting this error after shortly migrating the domain from http
to https
.
I've been following multiple questions and answers like this one right here but none of them seem to work.
Solutions i've tried:
-> disable all plugins and enable them again
-> change .htaccess
file to the default wordpress
-> change permalink structure to the default one again.
None of the above solutions worked for me now, although they worked in the past for a different website.
All pages give me 404 document not found in the server
except the homepage.
thanks in advance!
EDIT:
The problem does not happen if i use the default permalink structure and if use the following code in the wp-config:
define('WP_HOME', 'https://websiteurl');
define('WP_SITEURL', 'https://websiteurl');
//define('WP_DEBUG', true);
define('CONCATENATE_SCRIPTS', false);
Share
Improve this question
edited Jun 2, 2020 at 16:04
Pedro Ferreira
asked Jun 2, 2020 at 14:36
Pedro FerreiraPedro Ferreira
1791 silver badge10 bronze badges
3
- what did you do to migrate from http -> https? Did you just change the setting in wordpress Settings -> General? – Victoria Whitehead Commented Jun 2, 2020 at 14:54
- So Basically , the devops of my team updated the http certificate and moved it to a new domain, but under the same url. The problem has been fixed but only if the wordpress permalink structure is the default one, i've tried to use the /%category%/%postname% and it doesn't work :( – Pedro Ferreira Commented Jun 2, 2020 at 16:02
- See the new edit please! – Pedro Ferreira Commented Jun 2, 2020 at 16:03
1 Answer
Reset to default 0Fixed it by changing the website url in the database on the table wp_options
Seems like it didn't change even after i change the url in the backend, i had to change it manually.
本文标签: 404 errorWordpress 404 all pages except home
版权声明:本文标题:404 error - Wordpress 404 all pages except home 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742376151a2463204.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论