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 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 "/"?.
Step 2: Enter System Settings-Basic System Parameters-Core Settings, and change the "DedeCms installation directory" to an empty value. ?
Step 3: Enter the background homepage - update the system cache, check "Detect and clean up error documents", and click the "Start Execution" button.
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!