Skip to:
Content
Pages
Categories
Search
Top
Bottom

make buddypress work with permalinks containing index.php


  • chinasun
    Participant

    @chinasun

    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.

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

  • chinasun
    Participant

    @chinasun

    No one knows? I thought these forums are hosted by the devs of the plugin so kinda hoped to get a reply…

    Please, if someone can help me, this issue is going to make me crazy, I’m stuck and can’t progress until I get a bit of assistance.


    Varun Dubey
    Participant

    @vapvarun

    @chinasun change the permalinks and select PostName
    It will remove index.php from permalinks and ideally it should not be part of permalinks
    mysite.free.fr/%postname%/
    mysite.free.fr/sample-page

    The host does not require index.php; it’s just an auto installer glitch.


    chinasun
    Participant

    @chinasun

    Hi Vapvarun, thanks for your response. However, it’s not just an auto installer glitch. I don’t think you know “free.fr” host. This host DOES requires the use of “index.php” in the permalinks structure, you just get 404 errors otherwise.

    This a restriction imposed by this host provider. “Free.fr” is free but it imposes several restrictions in exchange. For example, out-going traffic, auto-updates, newsletters, private sites, and any rewrite rule in the “.htaccess” are all forbidden.

    That’s why I was looking for a way to make buddypress working with “index.php” in the permalink structure. In the end, I gave up but it’s a shame cause buddypress is really a great plugin. I’d still be very interested if someone by any chance knows what I need to modify in buddypress to make it work for my particular case.


    Varun Dubey
    Participant

    @vapvarun

    @chinasun try to get some paid hosting, that will not cost a fortune and you will be free to make any edits. FYI free.fr is blocked in my country 🙂


    chinasun
    Participant

    @chinasun

    Yeah, I’ve seen hosting solution for 3$/month but I prefer to not pay. It’s just a small fansite.

    What is your country? When you say “free.fr” is blocked, what message do you get when you visit a page hosted at free.fr? for example, the link below

    But du site

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar