WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

After a few weeks of head banging… I am very near to completing a local development environment for my WP Multi-Site Installation. The final problem that I have (wishful thinking), is that the primary address of the WP LAMP installation keeps re-directing improperly. I don’t seem to be able to find the correct configuration of /etc/host and wp-config and apache2 virtualhost, nor WP Database Site URL to get my local development environment to load properly, so that I can actually start the real work of editing sites and content.

Saying that my production site is on the url “example.org” and my local dev site is on the url “localhost.example.org”, the following is a detailed description of my current quagmire:

1.) Currently, dev site improperply redirects to http://localhost.example.org/localhost.example.org resulting in an error, preventing site from loading.

2.) With regards to my WP Database Site Url, I used the advice found at the bottom of this page because of a previous redirection problem sending to the site to the wp-login page. In a nutshell, I changed all the urls in my dev site database from being “example.org” to being “localhost.example.org” using the correct variant of this SQL query:
enter image description here

However, this solution did not solve the url re-direction problem. (For clarity purposes, yes I can connect to the database correctly now.)

3.) From there I edit my wp-config file according to the advice found here to the following values:

4.) In accordance with advice found here, I edit my apache2 virtualhost file (“example.conf”) to reflect the following:

5.) And finally, I went to my /etc/host file and made the following entry:

Of course, I remember to restart apache and mysql servers to make sure the changes were updated. Yes, I also enabled “example.org” on apache2 as well.

At this point I am just stuck. Any advice on how to the solve the redirection problem, highly appreciated…. What am I missing? hhmm….

Also, a final secondary question:

Assuming that one of you WP superpeople can spot my error above. I also have to subsites on the installation as well, let’s call them “webinar.example.org” and “myname.org”… How would I reacha and edit them on my local dev site? Should I just make entries in my host file? Or do I have to make separate virtualhost files, enable them, then point them at the primary directory of the multi-site “example.org”

Thanks again,

DP

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com