Solution with a slash added to the topic path of PHPCMS V9

Source: Internet
Author: User

PHPCMSV9 topic, in the settings to generate static and static site settings to generate in the root directory, the topic path URL will have a slash, such as: http://www.bkjia.com//special/ddos, I can only say that this is one of the many strange bugs in PHPCMS V9. I have mentioned it multiple times in the PC forum, but I have not seen any official fixes. Today, I spent a lot of time finding and solving the problem.
 
Solution:
 
1. Modify the phpcms/modules/special. php file row 43rd:
 
$ Url = $ special ['ishtml ']? APP_PATH.substr (pc_base: load_config ('system', 'html _ root'), 1). '/special/'. $ special ['filename']. '/':
 
Remove the first/of/special/and change it to special.
 
2. Add a new topic in the website background, and you will find that there will be no more two slashes in the newly added topic URL.
 
3. If the topic that has been added and generated has a slash, you can modify the database. For example, you can use phpmyadmin to open the v9_special table and find the URL field of each topic, remove the extra slash.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.