Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search not working on some phones
This topic contains 6 replies, has 2 voices, and was last updated by Stratur 6 years, 11 months ago.
- AuthorPosts
- October 27, 2016 at 8:27 am #10613
Hi.
Awesome plugin this is. But search function started to not working on some phones: Galaxy A5, Windows lumina.
Search bar just searching but no results appear.
October 27, 2016 at 8:37 am #10614Hi!
Thank you for your kind words!
The problem is not actually with the phones, but with the server. It looks like your website is configured to the http://www.asitek.ee url, but it’s accessible without the “www” part as well. If you access the site without asitek.ee, the ajax requests are still sent to the http://www.asitek.ee url, which causes the problem, as it qualifies as a cross domain request, and it’s not allowed by your server.
To solve it, make sure to set the server url to http://www.asitek.ee everywhere. You can also use a .htaccess rule in the .htaccess file in the root directory to force redirect all visitors to the “www” prefixed url:
-
This reply was modified 6 years, 11 months ago by
Ernest Marcinko.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2016 at 8:49 am #10616Hi.
Thanks for fast response.
But Url is with SSL so its https://www.asitek.ee/
so should I change rewrite code to https instead?October 27, 2016 at 8:52 am #10617I’m not sure if that is going to work, but yes, you should change that to https instead.
Also, make sure that on the site settings the site url is set correctly.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2016 at 8:52 am #10618Hi actually I have htaccess already like this
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]October 27, 2016 at 8:54 am #10619I think you can still use that below these lines, they should not conflict.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2016 at 8:59 am #10621Ok I think I got it now.
I added your code and it worked, because it had (www) too.
I will test it on other phones later, but it looks like issue is fixed.
So thanks for fast and very helpful reply!
PS! I have already 5 stared plugin on themeforest.
Good luck and thanks!
-
This reply was modified 6 years, 11 months ago by
- AuthorPosts
You must be logged in to reply to this topic.