链接重定向到仪表板xampp [英] links redirect to dashboard xampp
问题描述
我已将WordPress从主机移至Xampp本地主机.
I've moved WordPress from hosts to Xampp local hosts.
我更正了数据库内部的链接.虽然主页已加载.但是在每个链接上,我都被重定向到http://本地主机/仪表板页面.
I corrected the links inside the database. Although the home page is loaded. But on every link, I'm redirected to the http: // localhost / dashboard page.
我使用WordPress 4.9.6,Xampp 3.2.2和Windows 8.1 64位
I use WordPress 4.9.6, Xampp 3.2.2 and Windows 8.1 64-bit
我的.htaccess文件
my .htaccess file
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
文件更改为@Ustav建议不能解决此问题.进行更改后,虽然我不再重定向到XAMPP仪表板,但是却从Apache重定向到404页面.
For me, changing the .htaccess
file as @Ustav suggested did not resolve the issue. After making that change, while I was no longer redirected to the XAMPP dashboard, I was instead redirected to a 404 page from Apache.
为我解决问题的方法只是导航至设置>WP管理员中的永久链接,滚动到底部,然后单击保存更改",这是我从
What did resolve the issue for me was simply navigating to Settings > Permalinks in the WP admin, scrolling to the bottom, and clicking "Save Changes", an idea I got from this WP forum page. That immediately fixed it, no changes to .htaccess
required.
The remote-to-local transfer instructions I followed can be found on this 1&1 Ionos instruction doc
这篇关于链接重定向到仪表板xampp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!