WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Permalinks without domain part (2 posts)

  1. Aleksandersen
    Member
    Posted 7 years ago #

    Hi,

    This should be fairly simple (though I did not figure it out myself): I want the permalinks WITHOUT the domain part. Any suggestions on how to attchive this?

    (I am working on some redirects from the news feed. That is why I need this.)

  2. Aleksandersen
    Member
    Posted 7 years ago #

    Curtsey of <b>Lim_Dul</b> on the <i>IRC channel</i>:

    `<?php function my_permalink() {
    echo substr(get_permalink(), strlen(get_settings('home'))); } ?>`

Topic Closed

This topic has been closed to new replies.

About this Topic