I have a plugin which creates sites progmatically. What I need to do is ad a /s/ inbetween the domain and the site name in the URL.
I have changed the sites url by adding
/s/ to the path when calling
I now need to update the rewrite rules to cater for the added s.
add_rewrite_rule('^/s/([0-9]+)/?', 'index.php?', 'top');
What do I add to the second part of the rewrite rule (after
index.php?, so that the site will load correctly?)