I have a page in my theme directory that receives and processes a variable via get and returns an image (i want it to work as an image server).
sth like wordpress/wp-content/themes/mytheme/images.php?v=bla-bla.png
now i would like to set a rewrite rule for that page.
sth like wordpress/images/bla-bla.png
how do i go about this?
i could do it in .htaccess but i would prefer a solution that is implemented in my theme. but as i’m new to mod rewrite and wordpress this task blows my mind…
- The topic ‘Adding Rewrite Rule For A File In A Theme Directory’ is closed to new replies.