Welcome! Log In Create A New Profile

Advanced

Re: RewriteCond command

February 02, 2011 01:10AM
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
Subject Author Posted

RewriteCond command

lifeisjustabout February 01, 2011 06:27PM

Re: RewriteCond command

António P. P. Almeida February 01, 2011 09:32PM

Re: RewriteCond command

lifeisjustabout February 01, 2011 10:24PM

Re: RewriteCond command

António P. P. Almeida February 02, 2011 12:04AM

Re: RewriteCond command

lifeisjustabout February 02, 2011 01:10AM

Re: RewriteCond command

lifeisjustabout February 02, 2011 04:43AM

Re: RewriteCond command

Igor Sysoev February 02, 2011 05:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready