Hi there,
I'm configuring the effect at my own PC of:
if I type in the URL
http://localhost/abc.com/show/177 this URL then
processed behind the scenes by
http://localhost/abc.com/show.php?tid=177 without I ever seeing this
second url.
While encountered problem with:
when input in url:
http://localhost/abc.com/show/177
returns with : Not Found , The requested URL /abc.com/show/1052 was
not found on this server.
Environment:
windows xp sp2 + Apache/2.0.52 (Win32) PHP/5.1.4 Server at localhost
Port 80
Configuration in httpd:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^localhost$
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteCond %{REQUEST_URI} \.php$
RewriteCond %{QUERY_STRING} &?tid=(.+)&?
RewriteRule (.*)\.php$ $1/%1? [R]
RewriteRule ^/viewblog/(.+)/?$
http://localhost/abc.com/show.php?tid=$1[L]
</IfModule>
rewrite.log
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (2) init rewrite engine with requested uri /
abc.com/show.php
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (3) applying pattern '(.*)\.php$' to uri '/
abc.com/show.php'
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (4) RewriteCond: input='localhost'
pattern='^localhost$' => matched
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (4) RewriteCond: input='/abc.com/show.php'
pattern='!^/index\.php$' => matched
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (4) RewriteCond: input='/abc.com/show.php'
pattern='\.php$' => matched
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (4) RewriteCond: input='tid=1052' pattern='&?
tid=(.+)&?' => matched
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (2) rewrite /abc.com/show.php -> /abc.com/show/
1052?
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (3) split uri=/abc.com/show/1052? -> uri=/abc.com/
show/1052, args=<none>
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (2) explicitly forcing redirect with
http://localhost/abc.com/show/1052
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (3) applying pattern '^/viewblog/(.+)/?$' to uri
'http://localhost/abc.com/show/1052'
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (1) escaping
http://localhost/abc.com/show/1052
for redirect
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f40330/initial] (1) redirect to
http://localhost/abc.com/show/1052
[REDIRECT/302]
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f9e100/initial] (2) init rewrite engine with requested uri /
abc.com/show/1052
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f9e100/initial] (3) applying pattern '(.*)\.php$' to uri '/
abc.com/show/1052'
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f9e100/initial] (3) applying pattern '^/viewblog/(.+)/?$' to uri
'/abc.com/show/1052'
127.0.0.1 - - [23/Feb/2008:23:12:08 +0800] [localhost/sid#2bbfb0]
[rid#f9e100/initial] (1) pass through /abc.com/show/1052
anyone could lend me a hand?