gpt4 book ai didi

apache - mod_rewrite 添加不需要的文件扩展名

转载 作者:行者123 更新时间:2023-12-03 01:23:01 25 4
gpt4 key购买 nike

我将 Phorum 设置为在本地服务器 (Ubuntu Jaunty) 上使用搜索引擎友好的 URL。它工作得很好。将站点移动到生产服务器(Gentoo)后,我得到所有页面均未找到的 404 错误。下面的 mod_rewrite 日志显示了问题。

两次安装都使用相同的规则:

RewriteEngine On

# READ RULES
RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3,$4
RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2,$3

RewriteRule ^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3
RewriteRule ^([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2
RewriteRule ^([0-9]*)/([0-9]*)$ read.php?$1,$2

# DEFAULT RULES
RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4,$5
RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4
RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$ $1.php?$2,$3
RewriteRule ^([a-z]*)/([0-9]*)$ $1.php?$2
RewriteRule ^([a-z]+)$ $1.php

在我的本地服务器上,重写规则行为正确:

88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (2) init rewrite engine with requested uri /forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (1) pass through /forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/(.*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list -> /var/www/mydomain/web/forums/list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list/3 -> list/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)$' to uri 'list/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (2) [perdir /var/www/mydomain/web/forums/] rewrite 'list/3' -> 'list.php?3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) split uri=list.php?3 -> uri=list.php, args=3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add per-dir prefix: list.php -> /var/www/mydomain/web/forums/list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] add path info postfix: /var/www/mydomain/web/forums/list.php -> /var/www/mydomain/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]+)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (2) [perdir /var/www/mydomain/web/forums/] strip document_root prefix: /var/www/mydomain/web/forums/list.php -> /forums/list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b8395ae8/initial] (1) [perdir /var/www/mydomain/web/forums/] internal redirect with /forums/list.php [INTERNAL REDIRECT]
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (2) init rewrite engine with requested uri /forums/list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (1) pass through /forums/list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/(.*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([0-9]*)/([0-9]*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]*)/([0-9]*)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] strip per-dir prefix: /var/www/mydomain/web/forums/list.php -> list.php
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (3) [perdir /var/www/mydomain/web/forums/] applying pattern '^([a-z]+)$' to uri 'list.php'
88.88.88.8 - - [09/Jun/2009:11:32:49 +0100] [home.example.co.uk/sid#b81b3280][rid#b83aa3e8/initial/redir#1] (1) [perdir /var/www/mydomain/web/forums/] pass through /var/www/mydomain/web/forums/list.php

在我的生产服务器上突然出现一个文件扩展名 - 就好像文件系统路径已被解析:

88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18c3188/initial] (2) init rewrite engine with requested uri /forums/list/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18c3188/initial] (1) pass through /forums/list/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([0-9]*)/([0-9]*)/(.*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([0-9]*)/([0-9]*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([a-z]*)/([0-9]*)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] add path info postfix: /var/www/example.co.uk/web/forums/list.php -> /var/www/example.co.uk/web/forums/list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] strip per-dir prefix: /var/www/example.co.uk/web/forums/list.php/3 -> list.php/3
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (3) [perdir /var/www/example.co.uk/web/forums/] applying pattern '^([a-z]+)$' to uri 'list.php/3'
88.88.88.8 - - [09/Jun/2009:12:08:21 +0100] [www.example.co.uk/sid#a6b718][rid#18adf78/subreq] (1) [perdir /var/www/example.co.uk/web/forums/] pass through /var/www/example.co.uk/web/forums/list.php

我错过了什么?

最佳答案

MultiViews可能会导致此行为。尝试禁用它:

Options -MultiViews

关于apache - mod_rewrite 添加不需要的文件扩展名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/969508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com