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?