Home > Operation and Maintenance > Linux Operation and Maintenance > Detailed introduction to redirection configuration

Detailed introduction to redirection configuration

巴扎黑
Release: 2017-06-10 11:27:11
Original
2051 people have browsed it

Problem description How to configure 301 redirection for Apahce on ECS Linux server. Problem analysis is generally achieved by modifying Apache's site configuration file. Solution For example, if you want to redirect the domain name test.com to www.test.com, you need to modify the site configuration file in Apache and add the 301 redirection configuration. The most important thing is the following configuration: ServerName test.com #Bound domain name test.com RedirectMatch permanent ^/(.*) http://www.test.com/$1 #Visit test.com, jump to www.test.com


1. Linux system Apache301 redirection configuration method

Detailed introduction to redirection configuration

##Introduction: Problem description ECS How to configure 301 redirection in Apahce on Linux server. Problem analysis is generally achieved by modifying Apache's site configuration file. Solution For example, configure the redirection of domain

2. nginx

Introduction: nginx Redirect configuration

3. Redirect configuration of nginx stop

Introduction: Redirect configuration under nginx is in It runs normally under apache. But moving it to nginx is not normal. Don’t know how to configure it? The following is the .htaccess content: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCo

4. nginx redirection configuration

Introduction: The redirection configuration under nginx is under apache Operating normally. But moving it to nginx is not normal. Don’t know how to configure it? The following is the .htaccess content: RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond&nb

5. Website files do not need to be placed in the root directory of the website. Access by modifying the redirection configuration?

Introduction: Since the disk where the website root directory is located is almost full, the newly added hard disk cannot be merged into the old drive letter, so what should be done if it can be done?

[Related Q&A recommendations]:

php - Website files can be accessed by modifying the redirection configuration without placing them in the root directory of the website. ?

The above is the detailed content of Detailed introduction to redirection configuration. For more information, please follow other related articles on the PHP Chinese website!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template