RewriteCond command
lifeisjustabout
nginx-forum at nginx.us
Wed Feb 2 19:19:40 MSK 2011
Hi Antonio,
thanks for your answer i added your code into conf but still didnt help
when i type something in textbox system try to autocomplate i think
livesearch but when you put space after a word its getting error, when i
see access log i am receiving this
i try to search kylie i am typing kylie
xx.xx.xx.xx - - [02/Feb/2011:16:58:37 +1100] "GET
/index/livesearch&q=k&type=web HTTP/1.1" 200 491
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Wind$
xx.xx.xx.xx - - [02/Feb/2011:16:58:38 +1100] "GET
/index/livesearch&q=ky&type=web HTTP/1.1" 200 31
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Wind$
xx.xx.xx.xx - - [02/Feb/2011:16:58:38 +1100] "GET
/index/livesearch&q=kyl&type=web HTTP/1.1" 200 31
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Win$
xx.xx.xx.xx - - [02/Feb/2011:16:58:38 +1100] "GET
/index/livesearch&q=kyli&type=web HTTP/1.1" 200 31
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Wi$
xx.xx.xx.xx - - [02/Feb/2011:16:58:39 +1100] "GET
/index/livesearch&q=kylie&type=web HTTP/1.1" 200 31
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; W$
xx.xx.xx.xx - - [02/Feb/2011:16:58:39 +1100] "POST /search/redir
HTTP/1.1" 302 5 "http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U;
Windows NT 6.1; en-GB;$
xx.xx.xx.xx - - [02/Feb/2011:16:58:41 +1100] "GET
/search/web?search=kylie&type=web&fl=0 HTTP/1.1" 200 13148
"http://www.mysite.ws:81/" "Mozilla/5.0 (Window$
xx.xx.xx.xx - - [02/Feb/2011:16:58:44 +1100] "GET
/search/web?search=kylie&type=web&fl=0 HTTP/1.1" 200 13148
"http://www.mysite.ws:81/" "Mozilla/5.0 (Window$
xx.xx.xx.xx - - [02/Feb/2011:16:58:49 +1100] "GET / HTTP/1.1" 200 5078
"http://www.mysite.ws:81/search/web?search=kylie&type=web&fl=0"
"Mozilla/5.0 (Windows$
and then i hit enter it brings kylie results
i try to search kylie minogue i am typing kylie and space
xx.xx.xx.xx - - [02/Feb/2011:16:58:52 +1100] "GET
/index/livesearch&q=k&type=web HTTP/1.1" 200 491
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Wind$
xx.xx.xx.xx - - [02/Feb/2011:16:58:52 +1100] "GET
/index/livesearch&q=ky&type=web HTTP/1.1" 200 277
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Win$
xx.xx.xx.xx - - [02/Feb/2011:16:58:52 +1100] "GET
/index/livesearch&q=kyl&type=web HTTP/1.1" 200 276
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; U; Wi$
xx.xx.xx.xx - - [02/Feb/2011:16:58:53 +1100] "GET
/index/livesearch&q=kylie%20&type=web HTTP/1.1" 200 752
"http://www.mysite.ws:81/" "Mozilla/5.0 (Windows; $
and getting error not found
Error: Requested page was not found!
Details: livesearch&q=kylie &type=web Action not found!
Home
This is just the condition, what's the rule?
if ($request_uri != index.php) {
(...)
}
i think the rule is adding + request url if i dont put this command on
htaccess apache automaticly adding %20 between words on the result page
if i put this into htaccess its automaticly adding + between result
words on result page
for instance
http://www.mysite.com/search/web?search=katy+perry&type=web
with RewriteCond
http://www.mysite.com/search/web?search=katy%20perry&type=web
without RewriteCond
they both working btw
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,171397,171450#msg-171450
More information about the nginx
mailing list