我将非常感谢您的帮助,因为在阅读并尝试了许多教程之后,我没有找到任何解决方案。 在将域名从www.examlpe.fr更改为www.newExample.fr之后,我只有主页能够成功运行,但是其他链接返回404 not found错误。我尝试使用永久链接管理此问题,但我发现只有默认的永久链接有效。
在我设置的wp_config中:
define( 'WP_HOME','http://newExample.fr' );
define( 'WP_SITEURL','http://newExample.fr' );
也是在functions.php中,我设置了:
update_option( 'siteurl','http://newExample.fr' );
update_option( 'home','http://newExample.fr' );
我的.htaccess文件:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
此外,我尝试更新.htaccess(创建旧文件并创建空白文件)并在编辑primalinks时编辑权限
我还对mysite.conf进行了更改,以替换AllowOverride None-> AllowOverride All
预先感谢您的帮助