I'm in the process of building an api and want to redirect all requests to v1/index.php
My folder structure is;
-htdocs
--v1
----index.php
This is my htaccess atm
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
I want all requests sent to api.example.co.uk
to go to v1/index.php