• Kr0nZ

    (@kr0nz)


    Hi,
    In my plugin Im creating, I need to redirect links to my plugin, but Google-Fu has failed me and im not entirely sure how to go about it,

    What im trying to do is if some accesses my site using a link such as
    http://www.mysite.com/custom/example

    It will redirect to my plugin, and my plugin will have _get variables

    I know I could do this by modifying my .htaccess file and make a custom page, but i was wondering if WP has something that can handle this much more effectively?

Viewing 1 replies (of 1 total)
  • Thread Starter Kr0nZ

    (@kr0nz)

    I think i figured it out
    i added an action using
    add_action('init', 'ph_url_query');

    then from the ph_url_query function i have access to the $_SERVER array,
    inside this array at key ‘REDIRECT_URL’ i have my url ‘/custom/example’

    Is this the best way to go about it?

Viewing 1 replies (of 1 total)

The topic ‘Creating a custom permalink LINK (NOT a custom structure)’ is closed to new replies.