search dropdown results after rewriting url in .htaccess

search dropdown results after rewriting url in .htaccess



i have a problem in search results from ajax after rewriting url in .htaccess
search was working perfect when the url was like


http://www.sitename.com/movie.php?name=gold



but now it has some bug after the url was rewritten in .htaccess


http://www.sitename.com/movie/gold



code
.htaccess


RewriteEngine On
RewriteRule ^([^/.]+)$ $1.php [L]

# url movie rewrite
RewriteCond %THE_REQUEST ^[A-Z]3,s/+movie.php?name=([^s&]+) [NC]
RewriteRule ^ movie/%1? [R=301,L]
RewriteRule ^movie/([^/]+)/?$ movie.php?name=$1 [L,QSA]



search.js


$(document).ready(function()
$('.top-search input[type="text"]').on("keyup input", function()
/* Get input value on change */
var inputVal = $(this).val();
var resultDropdown = $(this).siblings(".result");
if(inputVal.length)
$.get("search.php", term: inputVal).done(function(data)

// Display the returned data in browser
resultDropdown.html(data);
);
else
resultDropdown.empty();

);

// Set search input value on click of result item
$(document).on("click", ".result p", function()
$(this).parents(".top-search").find('input[type="text"]').val($(this).text());
$(this).parent(".result").empty();
);
);





And what is the problem?
– Dave
Aug 21 at 19:03





please check the search bar from the header, working perfectly in this jaisentertainment.com not working in this jaisentertainment.com/movie/gold-2018-full-movie
– Jais Entertainment
Aug 21 at 19:04










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)