I'm trying to develop a plugin which adds a single line to the .htaccess file generated by WordPress.
The problem is that one of the WP generated lines override my rule, and via the "insert_with_markers()" function, I have not found a way to specify a position so I could prepend my line instead of appending it as currently is happening.
The first line of code is the auto generated WordPress line, and the second one is the one I'd like to have working.
RewriteRule . /dev/index.php [L] RewriteRule ^article/([/_0-9a-zA-Z-]+)$ http://www.domain.tld/?id=$1 [R=301,L,NC]
The way I see it there's 2 possibilities here:
A) Somehow specify where the insert_with_markers() places the new line of code, or
B) Modify my RewriteRule to work together with the WordPress generated one.
I hope you can point me a step or two closer to the right path.