Yii Notes---Redirect redirect, Yii---redirect
The redirect method of Yii is defined in both Ccontroler and CHttpRequest, and redirect in Ccontroller is called CHttpRequest method in redirect. What we normally call is the redirect method in
Permanent page removal (301 redirects ) is a very important "auto-steering" technology. One of the most feasible ways to redirect URLs. When a user or a search engine makes a browse request to the Web server, one of the status codes in the header
Frontend page Jump mode:1. Jump with FrameA window. frames. framename. Location. href = URL; // framename indicates a frame, and URL indicates the jump path.
B. Open a new window, window. Open (URL, 'framename ');2. jump without frameA window.
Common:ModelandviewI:return new Modelandview ("Redirect:/tolist");OrIi:return "Redirect:/tolist";OrIii:response.sendRedirect ("index.html");1. Requirements backgroundRequirement: The spring MVC Framework controller jumps between the controllers and
Spring MVC controller Jump redirect pass-through parameter1. Requirements backgroundRequirement: The spring MVC Framework controller jumps between the controllers and needs to be redirected. There are several situations: without parameter jump, with
url:http://zghbwjl.blog.163.com/blog/static/12033667220137795252845/1. Requirements backgroundRequirement: The spring MVC Framework controller jumps between the controllers and needs to be redirected. There are several situations: without parameter
This time, you can select your favorite color on the homepage to go to the corresponding page.
Select green to go to the green page:
Select red to go to the Red Page:
Okay. Here we will see four pages:
Select the color in index. jsp and click the
Linux Nginx 301 Redirect Jump method Summary, there is a need for friends to refer to.
The first case: access to the AAAAAAA station directed to the BBBBBBBBBBB station
Copy Code code as follows:
server {
Server_naaaaaaame
One, what is 301 redirect301 Redirect (or call 301 jump, 301 turn) is a user or search engine spider to the site server to make access requests, the service returns the HTTP data stream header part of the status code of one, indicating that this
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.