Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of moving dedecms from subdirectory to root directory

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the method of moving dedecms from subdirectory to root directory. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.

How do dedecms move from subdirectory to root directory?

dedecms from subdirectory to root directory method

Recommended Learning: Weaving Dreams CMS

Sometimes first in the subdirectory installed dedecms, one day want to change to the root directory friends can refer to the following way to try

Because I may be doing multiple projects at the same time, I didn't think there would be so many orders to hand, so I didn't consider too much. Recently, one by one, it is possible to install different websites into subdirectories, but when I finally hand them over to others, it will generally not be in the secondary directory. Of course, it will not have the same name as your secondary directory. Therefore, before handing them over to others, I need to make some adjustments. Move dedecms from the subdirectory to the root directory, and then to the customer again. So I wrote this article today, hoping to help you dedecms lovers.

Here are the specific steps. It is highly recommended to backup the database first.

1. In the background--System--System Settings--System Basic Parameters--Site Settings

Change the main page link to "/" without quotation marks

2. In the background--System--System Settings--System Basic Parameters--Core Settings

Empty the contents of the "DedeCMS installation directory." Otherwise, you will get an error message in "Background--Generate--HTML Update--Update Home Page--Select Home Page Template--Browse Nothing" and "Template Not Found"

3. In the background--generate--HTML update, update the homepage, columns, and articles

Otherwise, there will be problems with incorrect templates that lead to page confusion

4, because the attachments in the database will also involve subdirectories, so modify the database, otherwise all the attachments can not find the path

(1) Download phpmyadmin

(2) Unzip phpmyadmin

(3) Install phpmyadmin

Copy config.sample.inc.php to config.inc.php, and then modify config.inc.php

$cfg['blowfish_secret'] = ";

Add some irregular content at the back, and enter it casually.

(4) Enter phpmyadmin address, and then fill in MYSQL username and password to log in to manage

5. Select the database and click Search on the right (please backup your database before doing this)

Look up the name of the subdirectory you installed, mine is web1, so look it up. Be sure to check all the tables, otherwise you won't find anything!

Finally, I got the following results. The websites obtained by various websites are also different.

2 matches found in table dede_addonarticle

5 matches found in table dede_archives

1 match found in table dede_arctype

12 matches found in table dede_uploads

For the search results, there will be browsing, if you are using phpMyAdmin version 3.4.3.1, click browsing, the following pages will show the results, and then you slowly modify, it is recommended to use quick editing, very good very powerful. Make changes slowly until all changes are complete.

After everything is done, you need to generate an article, column and homepage in the background. Make sure the website is correct!

About dedecms from the subdirectory to the root directory method to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report