List of flags for Apache mod_rewrite rules rewriting
R[=code] (Force redirect) force external redirection
Forces a URL to be redirected to an external string, plus the http://thishost[:thisport]/prefix. If code is not specified, the default 302 HTTP status code is used.
F (force URL to is forbidden) disables the URL and returns a 403HTTP status code.
G (force URL to is gone) forces the URL to gone and returns a 410HTTP status code.
P (force proxy) forces the use of proxy forwarding.
L (last rul
Rewrite begins the process of processing.
Second match, marker is matched, so ignore the first rule, here is a "." The character appears in the http://www.jb51.net/index.php?markerid=nnnn, so the second rule is ignored, so we're done.
Note that this solution requires some extended functionality of Apache, so if your site is placed on a shared host you will encounter many obstacles.
12. Ensure security Service is enabledApache can distinguish between
);}}
In hashmap, get () is used to obtain the value, put () is used to insert the value, and containskey () is used to check whether the object already exists. It can be seen that, compared with the arraylist operation, hashmap not only indexes its content through the key, but also has little difference in other aspects.
As mentioned above, hashmap is based on hashcode. There is a hashcode () method in the super-class object of all objects, but it is the same as the equals method and cann
1. Determine if Apache has loaded the Mod_rewrite moduleLoadModule Rewrite_module Modules/mod_rewrite.so is commented out to remove the previous #2. Let Apache support. htaccessLocate the following codeallowoverride NoneRequire all deniedChange allowoverride None to allowoverride allThis allows the. htaccess file to be enabled.3. Create a. htaccess filePut it in the project directory and write your own rules inside.4. Restart the Apache serverReStart All ServicesWamp Configuring
The following is the configuration given by the official thinkphp5.1 document, which may not be good. htaccess converted to the following pro-Test available +followsymlinks- multiviews rewriteengineon%{ Request_filename}-D %{request_filename}-F ^ (. *) $ index.php [l,e=path_info:$1 ]thinkphp5.1 default error level is not suitable for development, can be in the configuration file app.php Plus: error_reporting (e_error | E_parse); Set the error levelthinkphp5.1 tp5.1 installation initiali
In a project, you sometimes compare two objects for equality, but instead of having to be the same object, you compare the content.
NSObject provides a isequal to determine whether it is the same object. System NSString, Nsarray, etc., have been overridden isequal methods.
When you override the IsEqual method generally, you need to rewrite the hash method, because: if you don't, Violates the general convention of Object.hashcode, which causes the
Solve error: the HTTP rewrite module requires the PCRE library.
Centos 64-bit
Step 1: Download the corresponding version from http://nginx.org/download/( or wget http://nginx.org/download/nginx-1.5.9.tar.gzdirectly on linux)
Step 2: unzip tar-zxvf nginx-1.5.9.tar.gz
Step 3: Set the configuration information./configure -- prefix =/usr/local/
$id =$_get["id"];
echo $id;
?>
Copy CodeFirst in the Apache fileOpen the Apache configuration file httpd.conf and find the following: #LoadModule rewrite_module modules/mod_rewrite.soTurn on the rewrite and go to the front "#".Second, overload allowoverride find the Apache configuration file as follows:
Options FollowSymLinks
AllowOverride None
Copy CodeChang
Nginx is a high-performance Web server, reverse proxy server and e-mail (IMAP/POP3) proxy server, with the advantages of low memory consumption and strong concurrency.The function and characteristics of nginx1. Basic functions and characteristics① as a static resource of the Web server , can cache open file descriptors;② as a reverse proxy server , can do cache , load balance ;③ Support FastCGI④ Modular , non-DSO mechanism (unable to load dynamically)
global server configuration are features I don't like in Apache, so that's why this is not done in Nginx." ”
the configuration syntax, format, and definition follow a so-called C-style contract. This method of building configuration files is widely used in open source software and commercial software. By design, C-style configuration is suitable for nested descriptions, logical, easy to create, read and maintain, by the vast number of engineers li
] [Domain=.foo.bar] [path=/] [expires=1h]
[HASH=INDEX|MD5|SHA1] [no_fallback] [secure] [ HttpOnly];
[Name=route] Set the name of the cookie that is used to record the session
[Domain=.foo.bar] set the domain name for the cookie effect
[path=/] set the URL path for the cookie action, default root Record
[expires=1h] To set the lifetime of the cookie, default is not set, browser shutdown is invalid, need to be greater than 1 seconds
[HASH=INDEX|MD5|SHA1] Set the identity of the server in
[Nginx Notes] nginx configuration file details, nginx configuration file details
This article focuses on nginx configuration. For other basic concepts about nginx, we recommend that you refer to the official website description. Here we recommend the
: This article mainly introduces the Nginx configuration file and ReWriteUrl ~, If you are interested in the PHP Tutorial, refer. Nginx Rewrite rule-related commands
Commands related to Nginx Rewrite rules include if, rewrite, set
49, Nginx Anti-theft chain, nginx access control, Nginx parsing PHP-related configuration, nginx agentFirst, nginx anti-theft chainMust be combined with "do not log and expire" because they are used at the same time.# vim/usr/local/nginx
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.