• Resolved Paul.bvl1

    (@paulbvl1)


    Hello,

    I’ve been looking for a plugin just like yours, and after many test with different ones I think yours might save my project. 🙂

    So, I’m running the site with a theme, wich I think might be the original source of the problem…

    Whenever I apply the filter I get a 404.
    The problem is that it redirects me to this kind of url (i’m still testing, so on local):
    localhost/SITE/portfolio-items/portfolio_category/lieu/portfolio_tags/requis/

    However, if I change the url to look like this, it works:
    localhost/RECA/index.php/portfolio-items/portfolio_category/lieu/portfolio_tags/requis/

    I guess there is a way to change the output url.(?)

    I’ve been looking through the files, but I have to admit I’m pretty new to this.

    Any way to solve it?

    Thanks

    https://wordpress.org/plugins/beautiful-taxonomy-filters/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Paul.bvl1

    (@paulbvl1)

    Made a mistake in the second url, sorry.
    It should be:

    localhost/SITE/index.php/portfolio-items/portfolio_category/lieu/portfolio_tags/requis/

    Is there a way to go through index.php in the output url when I apply the filters?

    Plugin Author Jonathan de Jong

    (@jonathandejong)

    Hi Paul,

    To me it seems your issue is either with your hosting, your permalink settings or possibly your htaccess file (if you modified it yourself).

    WordPress permalinks shouldn’t contain index.php unless you’ve explicitly set it that way OR if you’re on a very old windows server (Oh the horror).
    See here for more info: https://wordpress.org/support/topic/removing-indexphp-from-my-urls?replies=8

    To answer your question there is a filter to modify the filtered URL.
    You might be able to use this if changing/fixing your host issues is not an option.

    function modify_new_url($url){
    
        return $url . '?filtered=yes';
    
    }
    add_filter('beautiful_filters_new_url', 'modify_new_url');

    I think you could use str_replace to insert your index.php in the correct place..

    Lets say your url is: http://google.com/tax/term/
    Then to add index.php you could do:

    function modify_new_url($url){
    
        return str_replace('.com', '.com/index.php', $url);
    
    }
    add_filter('beautiful_filters_new_url', 'modify_new_url');
    Thread Starter Paul.bvl1

    (@paulbvl1)

    Thank you very much. But as it was an important feature, and I hadn’t an answer I kept going with testing other plugins… (not your fault, I was in a hurry. :p)
    I’ll maybe give it another shot in my next projects though.

    Great job with the support, very little unresolved topics.
    Bye

    Plugin Author Jonathan de Jong

    (@jonathandejong)

    Alright Paul, sorry for not responding faster 🙂

    Have a good one!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting 404. Wrong url.’ is closed to new replies.