Nginx in the use of pseudo static is directly in the nginx.conf write rules, do not need to be like Apache to open the Write module (mod_rewrite) in order to perform pseudo static.
Nginx only need to open the nginx.conf configuration file, write the required rules in the server.
Copy Code code as follows:
Server
{
listen 80;
server_name bbs.jb51.net;
Index index.html index.
Jsp rewrite url, jsp rewrite
As we all know, all web sites produced by java webprogramming end with. JS, and all other websites end with. html. How can this effect be achieved? The reason for this article is that jsp rewrite url needs to be designed to a third-party shelf pa
Download the rewrite module for IIS firstHttp://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloadsDownload 32-bit or 64-bit at the bottom of the page as neededAvailable in a Chinese 64-bit: Http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_zh-CN.msiThe next direct installation completes after the download i
Routing overrides are a very important basic feature of the Web server. By routing rewriting, you can structure URLs and be more semantic (useful for SEO). In addition, the sharing of the URL may be due to the program routing changes in the URL invalidation, and route rewriting can be a good solution to such problems.
The proper use of the rewrite function can b
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 the process of URL optimization, it is unavoidable to involve nginx rewrite rules. So how is the Nginx rewrite configured?Rewrite can be found in 4 places: ngx_http_srv_conf,ngx_http_sif_conf,ngx_http_loc_conf,ngx_http_lif_conf
Download and install the URL RewriteIIS8 The URL rewriting tool is not installed by default, you must download the installation yourself.If you have installed the Web Platform Installer by default on IIS, we can use the platform to automatically install the URL rewrite rewrite
Nginx common pseudo-static rules (rewrite)-Discuz X3.2-WordPress-PHPCMS-ECSHOP-SHOPE (convert), nginx-discuz
When we switch from an apache server to an Nginx server, their pseudo-static rules are different. Therefore, you are familiar with the pseudo-static rules of the Nginx
$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
Original: IIS8 How to install and use the URL rewriting tool-url RewriteDownload and install the URL RewriteIIS8 The URL rewriting tool is not installed by default, you must download the installation yourself.If you have installed the Web Platform Installer by default on IIS, we can use the platform to automatically in
The use of pseudo-static in nginx directly writes rules in nginx. conf, and does not require pseudo-static operations like apache to enable the write module (mod_rewrite.Nginx only needs to open the nginx. conf configuration file and write the required rules in the server.Nginx common Rewrite Pseudo-static rules:Pseudo
;
Rewrite ^/pingce ([0-9] *)/$/zl/pingce. php? Id = $1 last;
It is easy to find that the Rewrite rule of Apache is changed to the Rewrite rule of Nginx. if the Rewrite rule is changed, run the "nginx-t" command to check and find
Rewrite rule of Apache is changed to the Rewrite rule of Nginx. If the Rewrite rule is changed, run the "nginx-t" command to check and find nginx. if the conf configuration file has a syntax error, you can try to quote the condit
rewrite rule changed to Nginx rewrite rules, in fact very simple: Apache rewriterule instructions replaced Nginx rewrite instructions, Apache [l] The token is replaced with the Nginx last tag, and the middle content is unchanged.
shows that the rewrite rule of apache is changed to the rewrite rule of nginx, which is actually very simple: the rewriterule command of apache is changed to the rewrite command of nginx, the [l] Mark of apache is replaced with the last mark of
Rewrite rule of Apache is changed to the Rewrite rule of Nginx. If the Rewrite rule is changed, run the "nginx-t" command to check and find nginx. if the conf configuration file has a syntax error, you can try to quote the condit
ASP. net url rewrite. URL rewriting
I. URL rewriting is the process of intercepting incoming Web requests and automatically redirecting requests to other URLs.For example, if the browser sends a request for Hostname/101. aspx, the server automatically directs the request to http: // hostname/list. aspx? Id = 101.
Nginx rewrite rules is very simple, if you change the rules, using the "nginx-t" command to check that the nginx.conf configuration file has a syntax error, you can try to give the condition quotation marks. For example, the Nginx rewrite rule will report a syntax error:
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.