Apache's LoadModule Rewrite_module modules/mod_rewrite.so has been opened
Options FollowSymLinksAllowOverride AllOrder deny,allowDeny from all
This setting is also changed.
htaccess files are as follows
order Deny,allow deny
from all
Rewriteengine onrewritebase/# Direct One-word accessrewriterule ^index\.html$ index\.php [L]rewriterule ^category$ index\.php [L] # Access any object by its numeric identifierrewriterule ^feed-c ([0-9]+) \.xml$ feed\.php\?cat=$1 [ L]rewriterule ^feed-b ([0-9]+) \.xml$ feed\.php\?brand=$1 [L]rewriterule ^feed-type ([^-]+] \.xml$ Feed\.php\?type =$1 [L]rewriterule ^feed\.xml$ feed\.php [L]rewriterule ^category-([0-9]+)-B ([0-9]+]-min ([0-9]+)-max ([0-9] +)-attr ([^-]*)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ category\.php\?id=$1&brand=$2&price_min=$3& price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [Qsa,l]rewriterule ^category-([0-9]+)-B ([ 0-9]+)-min ([0-9]+)-max ([0-9]+]-attr ([^-]*) (. *) \.html$ Category\.php\?id=$1&brand=$2&pri ce_min=$3&price_max=$4&filter_attr=$5 [Qsa,l]rewriterule ^category-([0-9]+)-B ([0-9]+)-([0-9]+)-(. +)-([ a-za-z]+) (. *) \.html$ Category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5 [Qsa,l]rewriterule ^category-([0-9]+)-B ([0-9] +)-([0-9]+) (. *) \.html$ category\.php\?id=$1&brand=$2&page=$3 [Qsa,l] Rewriterule ^category-([0-9]+)-B ([0-9]+) (. *) \.html$ Categor y\.php\?id=$1&brand=$2 [Qsa,l]rewriterule ^category-([0-9]+) (. *) \.html$ category\.php\?id=$1 [Qsa,l]rewriterule ^goods-([0-9]+) (. *) \.html$ goods\.php\?id=$1 [qsa,l] Rewriterule ^mobile\/goods-([0-9]+) (. *) \.html$ mobile\/goods\.php\?id=$1 [Qsa,l]rewriterule ^article_cat-([0-9]+)- ([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ article_cat\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L] Rewriterule ^article_cat-([0-9]+)-([0-9]+)-(. +) (. *) \.html$ article_cat\.php\?id=$1&page=$2&keywords=$ 3 [Qsa,l]rewriterule ^article_cat-([0-9]+)-([0-9]+) (. *) \.html$ article_cat\.php\?id=$1&page=$2 [Qsa,l]rewriterule ^article_cat-([0-9]+] (. *) \.html $ article_cat\.php\?id=$1 [Qsa,l]rewriterule ^article-([0-9]+) (. *) \.html$ article\.php\?id=$1 [Qsa,l]rewriterule ^brand-([0-9]+)-C ([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) \.html brand\.ph p\?id=$1&cat=$2&page=$3&sort=$4&order=$5 [Qsa,l]rewriterule ^brand-([0-9]+)-C ([0-9]+)-([0-9]+] (. *) \.html brand\.php\?id=$1&cat=$2&page=$3 [Qsa,l]rewriterule ^brand-([0-9]+)-C ([0-9]+) (. *) \.html brand\.php\?id=$1&cat=$2 [Qsa,l]rewriterule ^brand-([0-9]+) (. *) \.html brand\.php\?id=$1 [Qsa,l]rewriterule ^tag-(. *) \.html Search\.php\?keyw ords=$1 [Qsa,l]rewriterule ^snatch-([0-9]+) \.html$ snatch\.php\?id=$1 [Qsa,l]rewriteru Le ^group_buy-([0-9]+) \.html$ group_buy\.php\?act=view&id=$1 [Qsa,l]rewriterule ^auction-([0-9]+) \.html$ auction\.php\?act=view&id=$1 [Qsa,l]rewriterule ^exchange-id ([0-9]+) (. *) \.html$ Exchange\.php\?id=$1&act=view [Qsa,l]rewriterule ^exchange-([0-9]+)-min ([0-9]+]-max ([0-9]+)-([0-9]+)-(. +)-( [a-za-z]+] (. *) \.html$ exchange\.php\?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5 &order=$6 [Qsa,l]rewriterule ^exchange-([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ exchange\ . php\?cat_id=$1&page=$2&sort=$3&order=$4 [Qsa,l]rewriterule ^exchange-([0-9]+)-([0-9]+] (. *) \.html$ exchange\.php\?cat_id=$1&page=$2 [Qsa,l]rewriterule ^exchange-([0-9]+) (. *) \.html$ exchange\.php\?cat_id=$1 [Qsa,l]rewriterule ^mobile\/goods-([0-9]+) (. *) \.htm l$ mobile\/goods\.php\?id=$1 [qsa,l]options-indexes
But visit the local page http://localhost/fajjj/category-41-b0.html
I'm going to report 404 mistakes.
Not Found
The requested url/category.php is not found on this server.
Access to dynamic pages http://localhost/fajjj/category.php?id=47 there's no problem.
Excuse me, what's going on?
Reply content:
Apache's LoadModule Rewrite_module modules/mod_rewrite.so has been opened
Options FollowSymLinksAllowOverride AllOrder deny,allowDeny from all
This setting is also changed.
htaccess files are as follows
order Deny,allow deny
from all
Rewriteengine onrewritebase/# Direct One-word accessrewriterule ^index\.html$ index\.php [L]rewriterule ^category$ index\.php [L] # Access any object by its numeric identifierrewriterule ^feed-c ([0-9]+) \.xml$ feed\.php\?cat=$1 [ L]rewriterule ^feed-b ([0-9]+) \.xml$ feed\.php\?brand=$1 [L]rewriterule ^feed-type ([^-]+] \.xml$ Feed\.php\?type =$1 [L]rewriterule ^feed\.xml$ feed\.php [L]rewriterule ^category-([0-9]+)-B ([0-9]+]-min ([0-9]+)-max ([0-9] +)-attr ([^-]*)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ category\.php\?id=$1&brand=$2&price_min=$3& price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [Qsa,l]rewriterule ^category-([0-9]+)-B ([ 0-9]+)-min ([0-9]+)-max ([0-9]+]-attr ([^-]*) (. *) \.html$ Category\.php\?id=$1&brand=$2&pri ce_min=$3&price_max=$4&filter_attr=$5 [Qsa,l]rewriterule ^category-([0-9]+)-B ([0-9]+)-([0-9]+)-(. +)-([ a-za-z]+) (. *) \.html$ Category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5 [Qsa,l]rewriterule ^category-([0-9]+)-B ([0-9] +)-([0-9]+) (. *) \.html$ category\.php\?id=$1&brand=$2&page=$3 [Qsa,l] Rewriterule ^category-([0-9]+)-B ([0-9]+) (. *) \.html$ Categor y\.php\?id=$1&brand=$2 [Qsa,l]rewriterule ^category-([0-9]+) (. *) \.html$ category\.php\?id=$1 [Qsa,l]rewriterule ^goods-([0-9]+) (. *) \.html$ goods\.php\?id=$1 [qsa,l] Rewriterule ^mobile\/goods-([0-9]+) (. *) \.html$ mobile\/goods\.php\?id=$1 [Qsa,l]rewriterule ^article_cat-([0-9]+)- ([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ article_cat\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L] Rewriterule ^article_cat-([0-9]+)-([0-9]+)-(. +) (. *) \.html$ article_cat\.php\?id=$1&page=$2&keywords=$ 3 [Qsa,l]rewriterule ^article_cat-([0-9]+)-([0-9]+) (. *) \.html$ article_cat\.php\?id=$1&page=$2 [Qsa,l]rewriterule ^article_cat-([0-9]+] (. *) \.html $ article_cat\.php\?id=$1 [Qsa,l]rewriterule ^article-([0-9]+) (. *) \.html$ article\.php\?id=$1 [Qsa,l]rewriterule ^brand-([0-9]+)-C ([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) \.html brand\.ph p\?id=$1&cat=$2&page=$3&sort=$4&order=$5 [Qsa,l]rewriterule ^brand-([0-9]+)-C ([0-9]+)-([0-9]+] (. *) \.html brand\.php\?id=$1&cat=$2&page=$3 [Qsa,l]rewriterule ^brand-([0-9]+)-C ([0-9]+) (. *) \.html brand\.php\?id=$1&cat=$2 [Qsa,l]rewriterule ^brand-([0-9]+) (. *) \.html brand\.php\?id=$1 [Qsa,l]rewriterule ^tag-(. *) \.html Search\.php\?keyw ords=$1 [Qsa,l]rewriterule ^snatch-([0-9]+) \.html$ snatch\.php\?id=$1 [Qsa,l]rewriteru Le ^group_buy-([0-9]+) \.html$ group_buy\.php\?act=view&id=$1 [Qsa,l]rewriterule ^auction-([0-9]+) \.html$ auction\.php\?act=view&id=$1 [Qsa,l]rewriterule ^exchange-id ([0-9]+) (. *) \.html$ Exchange\.php\?id=$1&act=view [Qsa,l]rewriterule ^exchange-([0-9]+)-min ([0-9]+]-max ([0-9]+)-([0-9]+)-(. +)-( [a-za-z]+] (. *) \.html$ exchange\.php\?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5 &order=$6 [Qsa,l]rewriterule ^exchange-([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ exchange\ . php\?cat_id=$1&page=$2&sort=$3&order=$4 [Qsa,l]rewriterule ^exchange-([0-9]+)-([0-9]+] (. *) \.html$ exchange\.php\?cat_id=$1&page=$2 [Qsa,l]rewriterule ^exchange-([0-9]+) (. *) \.html$ exchange\.php\?cat_id=$1 [Qsa,l]rewriterule ^mobile\/goods-([0-9]+) (. *) \.htm l$ mobile\/goods\.php\?id=$1 [qsa,l]options-indexes
But visit the local page http://localhost/fajjj/category-41-b0.html
I'm going to report 404 mistakes.
Not Found
The requested url/category.php is not found on this server.
Access to dynamic pages http://localhost/fajjj/category.php?id=47 there's no problem.
Excuse me, what's going on?
The requested URL /category.php was not found on this server.
This is a very obvious hint. Because it means that the rewrite rule is already in effect. And this path does not exist is also obvious, because your file path is actually /fajjj/category.php
.
- Change the rewritebase
/fajjj
to the path where you store the root directory of your Web site.
- On the debug server, try to use the hosts file to fabricate a virtual domain name, and then point to your Site directory via VirtualHost. After all, your deployment site is typically deployed to the root directory of the domain name.
My space pseudo-static to be configured in the Httpd.config, but will not, ask the answer ah, seek the rule!