We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Stripping PHP from URL is making Search not work
Currently I have an htaccess directive that I'm using that is stripping the .php from the end of all files on my website. I'm struggling to get my blog search to display properly and I believe this is the issue. Here is the blog search page which is not showing any entries even though it should. https://testingserver3.work/blog/search?q=air . I had the same issue with this htaccess directive getting a blog sitemap to work properly and Simon and I were able to get it figured out here is the post and we used an htaccess directive that made it work (http://forum.grabaperch.com/forum/06-26-2018-blog-sitemap). I tried to do somthing like this and it failed in htaccess.
RewriteRule ^blog/search\.php?.(.*)$ - [L]
I tried the above directive because the following code fixes the blog sitemap
RewriteRule ^blog/blogSitemap\.php$ - [L]
This same issue was created when I could not get forms to process properly because the PHP was stripped. I was informed I need to add an action code directly to the form code. Search is also a form so it is possible I need to add an action code directly to the search.html template. Any suggestions would be great as I'm stumped.
Want to reply to this thread?Login with Perch