WordPress Permalink/URL Rewriting to something other than index.php

This may not be possible…

But, it’s a simple question, I have requirement to make this rewrite rule work:

Read More
add_rewrite_rule(
    "^Images/awaiting.png", "plugins/My_Plugin/Images/awaiting.png","top"
);

It doesn’t, and having read around on here, the reason is that the Redirect part has to start with index.php.

Fair enough, but is there any way around this without modifying htaccess? I am trying to achieve this entirely within the plugin code so no code modifications are required by the client after downloading the plugin.

Related posts

Leave a Reply