Title: Getting 404. Wrong url.
Last modified: August 31, 2016

---

# Getting 404. Wrong url.

 *  Resolved [Paul.bvl1](https://wordpress.org/support/users/paulbvl1/)
 * (@paulbvl1)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/getting-404-wrong-url/)
 * 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.
   ph**p/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/](https://wordpress.org/plugins/beautiful-taxonomy-filters/)

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

 *  Thread Starter [Paul.bvl1](https://wordpress.org/support/users/paulbvl1/)
 * (@paulbvl1)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/getting-404-wrong-url/#post-6919100)
 * 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](https://wordpress.org/support/users/jonathandejong/)
 * (@jonathandejong)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/getting-404-wrong-url/#post-6919151)
 * 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](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/](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](https://wordpress.org/support/users/paulbvl1/)
 * (@paulbvl1)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/getting-404-wrong-url/#post-6919162)
 * 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](https://wordpress.org/support/users/jonathandejong/)
 * (@jonathandejong)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/getting-404-wrong-url/#post-6919163)
 * 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.

 * ![](https://ps.w.org/beautiful-taxonomy-filters/assets/icon-256x256.png?rev=1654967)
 * [Beautiful taxonomy filters](https://wordpress.org/plugins/beautiful-taxonomy-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beautiful-taxonomy-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jonathan de Jong](https://wordpress.org/support/users/jonathandejong/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/getting-404-wrong-url/#post-6919163)
 * Status: resolved