![]() |
|
Search doesn't work with mod_rewrite enabled - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Search doesn't work with mod_rewrite enabled (/thread-12481.html) |
Search doesn't work with mod_rewrite enabled - Epsilon - 2016-03-26 Hi I have enabled the "mod rewrite" option under "Options > General > URL Options" and for he most part everything works as expected. Unfortunately enabling this option breaks my search. I have assigned the tag "Test Tag" to a single album and 6 images. When I search for "Test Tag" with "mod rewrite" enabled nothing will show. However, if I disable this option and search for "Test Tag" the album and 6 images show as intended. I checked the debug log but there are no entries logged for today. My site can be found here: southsmuseumofpostcards.nz Any help with this would be greatly appreciated. Search doesn't work with mod_rewrite enabled - fretzl - 2016-03-26 Try to "Purge search cache" on the [i]Admin > Overview[/i] page. Search doesn't work with mod_rewrite enabled - Epsilon - 2016-03-26 I have set the "cache expiry" option to 0 and enabled the "cacheManager" plugin, I then used the "purge search cache" option. Unfortunately the search still returns no results. I noticed the search works (even with mod_rewrite enabled) if I type the keywords into the URL manually, for example: After submitting a search the URL is: The above returns no results. If I change the URL to this: The album and images are displayed. I'm not sure if this will be helpful in finding out why my search isn't working but I thought I'd mention it just in case. Search doesn't work with mod_rewrite enabled - acrylian - 2016-03-26 I think something might not be right on your site. I assume you have the correct 'htaccess' file and your server really supports modrewrite. On using the search I shortly see the url A few general things to try:
Search doesn't work with mod_rewrite enabled - Epsilon - 2016-03-26 Thank-you very much for your help, I found the problem and now the search works. There was a problem with my search form's action which was still pointing to "index.php?p=search" even if "mod_rewrite" was enabled. I added a check to change the action depending on whether or not "mod_rewrite" is enabled and it now works as expected. Thanks again for your help |