• I would like to translate the paged part of a URL, like so:
    currently: whatever/page/2
    I would like: whatever/seite/2

    Does anybody know of a filter to do this?
    Or would a custom rewrite be more appropriate? If yes, how?

    I would rather not hack core files ex. rewrite.php
    $pageregex = 'page/?([0-9]{1,})/?
    etc.

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi, I’d like to know if you found an answer to your question.

    I’m tempted to edit rewrite.php but i know that hacking core files is not recommended, since in every WP update it will be overwritten.

    In this particular case if you change “page” from that file you will still have to go to the database and edit the rewrite_rules entry in your wp_options table for the change to take effect.

    I believe that there must be an easier way to modify this by using $wp_rewrite and $permalink_structure but unfortunately i haven’t figured it out yet.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘rewrite (translate) paged part of a URL’ is closed to new replies.