• Resolved BigBueno

    (@bigbueno)


    I’d like to change the permalink structure.

    Currently the structure is:
    mywebsite.com/documents/[year]/[month]/[filename]

    I would like to change the foldername “documents” as well as completely leave out [year]/[month]

    What would be the best approach? What files need to be changed? Or can this only be done globally via HTACCESS?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor nwjames

    (@nwjames)

    @bigbueno

    Please go to Settings -> Media and look at the last two options.

    The first of these is labelled “Document Slug”. Change this from its default value of “documents” to the name of your choice.

    The second is a checkbox which, when checked, will not write the month and year into the URL,

    Then save these changes. That is all you need for all new (or edited) documents.

    You may have some existing documents with the old permalink structure. You can use the Validate Structure option to fix the permalink names of existing documents. However, as delivered, you will need to do this for each document individually by clicking on each button marked “Fix”. Each is individually quick but it can be tedious doing a large number of documents one at a time.

    Hope this is of use,

    Neil James

    Thread Starter BigBueno

    (@bigbueno)

    I was thrown off by the fact that the settings were stuffed inside Settings>>Media. But what an excellent and elegant solution!

    Many thanks for your swift reply!

    Are there recommended 3rd parties (or do you know of anyone) that can does custom development on this particular plugin? I know this aint fiver, so I don’t expect nor need it to be for virtually nothing. I am fully willing to pay commercial fees for custom development.

    (I’d really need a partial API for this plugin)

    Plugin Contributor nwjames

    (@nwjames)

    @bigbueno ,

    I would be able to help. I would expect your requirement to fall into two elements. One would be of general use – which I would expect to propose a change to the plugin itself. This could be to add an action hook. And the other would be the specific processing required.

    I am not sure whether I should be putting an email address here, so I will do it indirectly. You can contact me by looking down these support topics and find one called “Notification Email”. In there I link to my GitHub repository for Email Notifications. Amongst the files is one called docs/SECURITY.md that gives my email address.

    Hope this is of use,

    Neil James

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change URL structure’ is closed to new replies.