Home  >  Article  >  CMS Tutorial  >  Installing dedecms in a website subdirectory causes confusion in web page layout

Installing dedecms in a website subdirectory causes confusion in web page layout

藏色散人
藏色散人Original
2019-12-07 09:50:312791browse

Installing dedecms in a website subdirectory causes confusion in web page layout

Installing dedecms in a website subdirectory causes confusion in the web page layout?

Recently, I installed dedecms on the Godaddy host for a client c. Because the Godaddy host can build multiple websites, I used subdirectories to bind domain names to create multiple dedecms sites.

Recommended study: 梦Weavercms

However, after installing DEDECMS in the subdirectory, a big problem occurred, that is, when accessing the website through the domain name bound to the subdirectory after installation, the website The frame layout is completely gone, leaving only text links. However, accessing through the main domain name and subdirectory name is normal. I have changed many settings but cannot solve the problem, which is very frustrating. For example, my main domain name is www.xxx.com, the name of the subdirectory installed by DEDE is aaa, and the domain name bound to this subdirectory is www.yyy.net. After the website is installed, through www.xxx.com/ Everything is normal when aaa accesses the website, but when accessing through the bound domain name www.yyy.net, the above problem occurs. The layout of the website page is completely chaotic and no frame is displayed. After this problem bothered me for two days, I finally found a solution online today, and I would like to share it with you here.

The first choice is to enter the dedecms background management system:

The first step: Enter the system settings - basic system parameters - site settings, change the "Web page home link" to "/"?.

Installing dedecms in a website subdirectory causes confusion in web page layout

Step 2: Enter System Settings-Basic System Parameters-Core Settings, and change the "DedeCms installation directory" to an empty value. ?

Installing dedecms in a website subdirectory causes confusion in web page layout

Step 3: Enter the background homepage - update the system cache, check "Detect and clean up error documents", and click the "Start Execution" button.

Installing dedecms in a website subdirectory causes confusion in web page layout

Installing dedecms in a website subdirectory causes confusion in web page layout

Step 4: Update all columns and documents of the website.

Step 5: Update the homepage, preview, and the website will return to normal.

It took me five hours to figure this out! ! Before, it was all direct code, but I took a detour

The above is the detailed content of Installing dedecms in a website subdirectory causes confusion in web page layout. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn