Testing rewrite rules

Is there a way to test nginx custom rewrite rules within the wordpress-setup role without having to re-provision the vm everytime?

and just to make sure, i’ve got my custom rewrite rules in roles/wordpress-setup/templates/site1/rewrites.conf.j2

Thank you

Chris

You may just vagrant ssh into the machine and modify the files inside to test out the rewrite rules.
Once you have got the working rewrite rule, then you write it to the provision template file.

1 Like