Speedphp: Change the address of the website class to absolute address once

Source: Internet
Author: User
The site is written in speedphp, the address is the relative address, now to all to the absolute address.

Ask the great God answer!

Appreciate!!!


Reply to discussion (solution)

Do not know oh your site layout, how to change?

In the MVC architecture, is the entry file not index?

The absolute path to be written to the official website now

Two methods
1. In the template, all addresses are replaced by a custom function output, the function of smart add domain name, need to modify a large number of template files
2. At the bottom of the universal footer on all pages, or the frame you're talking about has an anchor point, extract the HTML using the OB function, match the A tag, and then add the domain name.

You mean to add a domain name in front of you?

Already solved, now only knot paste. Because it is a framework, it is possible to find the location of the rewrite URL in the framework, plus the URL.

  • 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.