A
A
Alexander Sokolov2016-04-01 15:00:23
MySQL
Alexander Sokolov, 2016-04-01 15:00:23

How to fix the problem of the wrong path to the site files on the Wordpress engine?

I made a site on a local Open Server. The fact is that the folder was called the site europrestige/ without the .ru zone.
When I uploaded the site to hosting, I ran into a problem, the site was opened not by europrestige.spb.ru, but by europrestige/
In the wp-config.php settings, I fixed this problem, but now the site does not load style files and other files!(
There are 58 errors in the developer console! All site files refer to europrestige/.......... , but should refer to europrestige.spb.ru/..... ....
Guys, does anyone know how to solve the

problem ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sokolov, 2016-04-01
@krgn

Thank you all very much, I solved the problem by writing in the functions.php file in the
update_option('siteurl',' europrestige.spb.ru ');
update_option('home',' europrestige.spb.ru ');

E
Evgeny Bakulin, 2016-04-01
@stranger2015

If you have a fully functional version on a local server - use the Duplicator plugin - it will make a complete copy of your site, the output is 2 files - a zip archive and installer.php - upload them to the root directory, run installer, you will be asked for database settings - enter - you will be happy! There are no problems with links, everything works.
Enjoy!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question