The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Confused with Permalinks (3 posts)

  1. hgfischer
    Posted 10 years ago #


    I'm developing an picture/image/photo professional gallery for WordPress and need some help to better understand the permalinks mechanism.

    I want to make the following permalinks for my plugin, but I'm getting no success:

    /images/ -> index.php?chpage=images
    /image/image_file.jpg -> /index.php?image=image_file.jpg

    /albums/ -> index.php?chpage=albums
    /album/album_name/ -> /index.php?album=album_name

    /subjects/ -> index.php?chpage=subjects
    /subject/subject_name/ -> /index.php?subject=subject_name/

    I tryed to understand the Codex docs and tryed some tests without success. The online docs is a little confusing.

    Can you give me some example on how to do a complete rewrite support in a plugin? What actions or filters I need to define?

  2. Alex Mills (Viper007Bond)
    Posted 10 years ago #

    Check out the mod_rewrite_rules filter:


    add_filter('mod_rewrite_rules', 'your_function');

  3. galbeed
    Posted 10 years ago #

    add_filter('mod_rewrite_rules', 'your_function');

Topic Closed

This topic has been closed to new replies.

About this Topic