migration - Changed site URL and now my Front Page doesn't display correctly

This wp site is a redesign of an old non wp site. I have made the site on the same server, but in a different directory

This wp site is a redesign of an old non wp site. I have made the site on the same server, but in a different directory named /nou until it was ready. everything was fine until I copied the site in the root directory.

the site in the construction was on www.lawoffice.ro/nou and when it was copied to the root www.lawoffice.ro. it still continue to try to reach the homepage in the /nou directory. I have changed the site adress in the wp-config like this:

define( 'WP_HOME', '' );
define( 'WP_SITEURL', '' );

but nothing.

I also tried in the themes functions.php like this:

update_option( 'siteurl', '/' );
update_option( 'home', '/' );

But still nothing.

Then I find and replaced all the links in the database, but still noting.

Ewerithing else is fine, all the other pages are working in the right directory, only the first page try to reach the www.lawoffice.ro/nou directory.

Weirdly if I copy the link from the dashboard and and insert it in the address bar it look right: www.lawoffice.ro, but when I press enter the /nou keeps appearing in the end.

I have to resolve this problem urgently

Please help

Thank you.

This wp site is a redesign of an old non wp site. I have made the site on the same server, but in a different directory named /nou until it was ready. everything was fine until I copied the site in the root directory.

the site in the construction was on www.lawoffice.ro/nou and when it was copied to the root www.lawoffice.ro. it still continue to try to reach the homepage in the /nou directory. I have changed the site adress in the wp-config like this:

define( 'WP_HOME', 'http://www.lawoffice.ro' );
define( 'WP_SITEURL', 'http://www.lawoffice.ro' );

but nothing.

I also tried in the themes functions.php like this:

update_option( 'siteurl', 'http://www.lawoffice.ro/' );
update_option( 'home', 'http://www.lawoffice.ro/' );

But still nothing.

Then I find and replaced all the links in the database, but still noting.

Ewerithing else is fine, all the other pages are working in the right directory, only the first page try to reach the www.lawoffice.ro/nou directory.

Weirdly if I copy the link from the dashboard and and insert it in the address bar it look right: www.lawoffice.ro, but when I press enter the /nou keeps appearing in the end.

I have to resolve this problem urgently

Please help

Thank you.

Share Improve this question edited Apr 18, 2019 at 17:00 RiddleMeThis 3,8078 gold badges22 silver badges30 bronze badges asked Apr 18, 2019 at 14:11 Botond VajnaBotond Vajna 4714 silver badges11 bronze badges 2
  • Do you have something in your .htaccess file that needs updated? Go to Settings > Permalinks and save that page a couple times. Also try it in a new browser or private to avoid cache issues. – RiddleMeThis Commented Apr 18, 2019 at 14:20
  • You have right, in a private browsing it is ok, thank you – Botond Vajna Commented Apr 18, 2019 at 14:27
Add a comment  | 

1 Answer 1

Reset to default 1

When changing your site URL or even just adding an SSL its a good idea to clear your browser cache before testing. Or simply use a new browser or open a private window to avoid the issue.

To clear you browser cache you can do this, in Chrome.

Click the 3 dots to go to Settings > More tools > Clear browsing data

This will open a pop-up with options on what to delete.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745574947a4633905.html

相关推荐

  • migration - Changed site URL and now my Front Page doesn't display correctly

    This wp site is a redesign of an old non wp site. I have made the site on the same server, but in a different directory

    12小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信