. Htaccess does not work! The recipient has a score! What should I do?
Source: Internet
Author: User
. Htaccess does not work! The recipient has a score !. The htaccess content is as follows: RewriteEngineOnRewriteBase/RewriteRule ^ cms/5 gameweb/statics/css/5g/css/(. * \. css)/combine. php? Type = css & amp; files. htaccess does not work! The recipient has a score!
The. htaccess content is as follows:
RewriteEngine On
RewriteBase/
RewriteRule ^ cms/5 gameweb/statics/css/5g/css/(. * \. css)/combine. php? Type = css & files = $1
RewriteRule ^ cms/5 gameweb/statics/css/5g/js/(. * \. js)/combine. php? Type = javascript & files = $1
Install the phpStudy integration environment in Windows 7.
Httpd. conf has modified the following content:
LoadModule rewrite_module modules/mod_rewrite.so
Options All
AllowOverride All
AccessFileName. htaccess
Cannot take effect .. Both the htaccess and combine. php files are stored in the root directory. I don't know why...
------ Solution --------------------
It is said that all of them have scores, so I am here ~~
------ Solution --------------------
Let's take a look. What does LZ mean?
------ Solution --------------------
Insufficient information. test it separately.
First confirm that your apache can work normally, then the most basic htaccess can work, and then the rewrite module can work independently.
Then there will be detailed information in the logs of the joint debugging... apache.
------ Solution --------------------
Check whether your rewrite module is enabled first, and when you modify the http. conf configuration, there are more than one!
RewriteBase/
Is there a problem with the root directory?
------ Solution --------------------
Discussion
The. htaccess content is as follows:
RewriteEngine On
RewriteBase/
RewriteRule ^ cms/5 gameweb/statics/css/5g/css/(. * \. css)/combine. php? Type = css & files = $1
RewriteRule ^ cms/5 gameweb/statics/css/5g/js/(. * \. js)/combin ......
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service