I've got a website on a FTP, mysite, on which I have :
/index.php which is my real site /preprod/index.php, which is my pre-production website
I want to make the preprod website visible to any newcomer, but be able to enter a secret URL to access the real site
I've built the following .htaccess :
RewriteEngine on RewriteRule mysite.com/secret mysite/preprod/index.php [L,R=301] Redirect /index.php /preprod/index.php
I've got a "404 error"
How could I correct my file ?