Vulnerability Description: Use the. htaccess file to execute php scripts. Procedure:1. Create an htaccess file:Code content:SetHandler application/x-httpd-php2. Upload the htaccess file in the utility
Did you explain the. htaccess file a very detailed book?
Ask for recommendations
Reply content:
Did you explain the. htaccess file a very detailed book?Ask for recommendations
What is the main question that the Lord wants to see is "33 days
About the. htaccess file The problem of writing a pseudo-static rule
This post was last edited by Kaixinmaitian on 2014-01-03 10:14:28
The code in the. htaccess file is:Rewriterule ^ (?! rewrite\.php) (. *) $/rewrite.php\?rewrite=$1&%1 [qsa,nu,pt,l]
1. Time Zone settings
Sometimes, when you use the date or mktime function in PHP, it will display some strange information due to different time zones. The following is one of the solutions to this problem. Is to set the time zone of your server.
The browser can simply read the cache control header for the. htaccess file, and the cache header will require the browser to keep the picture or any other media for 2 weeks (or more) so that the browser can call the picture at any time until the
Site can not open, the first time is certainly to look at the log file, immediately opened:/var/log/httpd/error_log, found that the last error is:
Permission denied:/var/www/html/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is
The Apache mode rewrite module provides a rewrite engine based on the regular expression parser to rewrite URL requests in real time. In most cases, it is used in conjunction with the. htaccess file. For example, the URL of this article
The. htaccess file (hypertext Access file) is a very powerful configuration file for the Apache Web server, and for this file, Apache has a bunch of parameters that allow you to configure almost arbitrary functionality ... htaccess The configuration
The following questions are prompted when you set up a permalink:If you have .htaccess Filecan be written, we can automatically modify it. But it seems that it is not writable, so we have listed below your.htaccessthe URL rewrite rules that
1. First modify the Apache httpd.conf file.Verify that the Mod_rewrite.so module is loaded in the httpd.conf configuration file, and the method is loaded by removing the comment # number in front of the mod_rewrite.so Speak httpd.conf in
The. htaccess file URL overrides when the previous rule matches and transitions to the next rule that matches the next match conversionRewriterule ^shangpin-([0-9a-za-z]+)/category-([0-9]+)-([0-9]+)-(. +) \.html$ At the time of the URL shangpin-cat1
URL rewritingThe usual URL contains index.php, in order to achieve a better SEO effect may need to remove the URL inside the index.php, through the way of URL rewriting can achieve this effect, usually need to open the Server Url_rewrite module to
Recently, there was a problem with the Apache Rewrite pseudo-static configuration. Write the following:Rewriteengine onRewriterule ^/t_ (. *)/$/test.php?id=$1Found to work when saved in the httpd.conf file.and written in the. htaccess file, it doesn'
Document directory
Fixed Link Type
Select Permanent Link Structure
Use "beautiful" fixed links
Do not use a fixed link of mod_rewrite
Fixed Link Problems
Fixed links,. htaccess files, and MS Frontpage
See
External resources
Permalink is
Apache configuration:
Edit the httpd. conf file
(1) find:# Loadmodule rewrite_module modules/mod_rewrite.so and remove "#" from the previous line, because this is required to use Zend framework, at least for now.
Add the following lines at the
For example, to protect the admin folder, follow these two steps:
Step 1: use NotePad to create a file. htaccess and enter the following content:
Authtype basicauth
Userfile D:/appserv/www/hill/admin/. htpasswd
Authname "hill"
Require
In windows, we know that you cannot create a file without a main file name. If you want to create a file in windows. for the htaccess file, we have to find other methods. I will summarize them below. htaccess creation methods.
The following methods:
Ask A. htaccess file parsing problem
The showdetail.php?id=** of my display file on the products
I want to show the product as the following rules;
/products/new-products/13.html
/products/outdoor-led/13.html
/products/indoor-led/13.html
.....
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.