Tips for setting up a second-level domain name in PHP second-level subdirectory (backend directory)

黄舟
Release: 2023-03-06 10:52:01
Original
2997 people have browsed it

This article mainly introduces the method of setting the second-level domain name in the PHP second-level subdirectory (backend directory). It has a very good reference value. Let’s take a look at it with the editor.

We can use Apache’s .htaccess rewriting to achieve 301 jump. The specific operation method is--change the root of the background The content added to the .htaccess file in the directory folder is:

 RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.test\.com$ [NC] RewriteRule ^(.*)$ //m.sbmmt.com/ [R=301,L] 
Copy after login


## The above is the PHP secondary subdirectory (backend directory) setting two Level domain name skills, for more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!



Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!