make buddypress work with permalinks containing index.php
wordpress version: 4.9.5
buddypress version: 4.9.4
theme: Twenty Fifteen
I have a wp website hosted on “free.fr”. Unfortunately, this host provider doesn’t allow the use of “pure” pretty permalinks. I’m forced to insert index.php in the permalink structure…
My current permalink structure is /index.php/%year%/%monthnum%/%day%/%postname%/ , which gives me url like the 2 examples below:
mysite.free.fr/index.php/2018/04/04/hello-world/ (for posts)
mysite.free.fr/index.php/sample-page (for pages)
Problem is that buddypress write its own urls without the “index.php” required by my host provider. Because of that, I’m getting 404 errors each time I try to access a buddypress page.
Since I cannot remove the index.php from wordpress permalink, I need a way to make buddypress work with the “index.php” affix. I think I need to change the way buddypress generate its pages but am not sure how to do it. Basically, I’d like buddypress to generate and use url like mysite.free.fr/index.php/members instead of mysite.free.fr/members
Any idea how I can do it? I’ve found a “bp_uri” filter but so far have been unable to use it successfully to rewrite the urls.
I have no problems to modify wordpress core files or buddypress core files if needed.
- You must be logged in to reply to this topic.