Rewrite URLs

    • 106 posts
    April 25, 2020 8:55 AM EDT

    Hello,

     

    I would like to know if there is a tutorial to rewrite some urls on Social Engine 5.

    • Moderator
    • 6923 posts
    April 27, 2020 5:29 AM EDT

    There is no difference from v4 to v5 in the rewrite. 

    • Moderator
    • 6923 posts
    April 27, 2020 5:31 AM EDT

    I'll move this to the SEPHP section as your question isn't about SE Unite where you posted it.

    • 106 posts
    April 27, 2020 1:03 PM EDT

    Ok so can you send me a page where there is a good tutorial to understand how to rewrite urls on social engine ?

    • 265 posts
    April 27, 2020 1:23 PM EDT
    Yungsun said:

    Ok so can you send me a page where there is a good tutorial to understand how to rewrite urls on social engine ?

     Essentially, the only things you need to know are

    / = index.php?

    and /install/ = /install/index.php?

     

    and to use the .htaccess files included with Social Engine.


    This post was edited by abuk at April 27, 2020 1:23 PM EDT
    • 106 posts
    April 27, 2020 2:32 PM EDT

    Ok but I also need to modify some urls using a third party plugin. For example I want to remove the "index/46" and "91" from the url https://toutavis.com/avis-remuneres/index/46/alimentation-boissons/91/alcools

    Is it really hard to modify these urls ? The developer asks $600 for this task, I think it should not be so expensive right ?

    • 265 posts
    April 27, 2020 6:13 PM EDT

    Without knowing the code, I have no idea how reasonable that is.

     

    It will probably involve changing the controller and adding checks that each title is unique when creating new items, rather than just changing the routes (assuming the plugin uses an MVC pattern).

    • 106 posts
    April 28, 2020 7:58 PM EDT

    Okay thanks a lot for the informations !