I did some research and think the best way to do this is block the entire folder under domain.com and allow the files i want to allow it to access. The secure.domain.com will be able to access everything in that folder
Something like?
Code:
# No one needs to access this directly
<Directory "/home/sites/domain.com/web/ecommerce">
Order Deny,allow
Deny from all
</Directory>
# But this file is OK:
<Files "/home/sites/domain.com/web/ecommerce/page_jump.php">
Order Deny,Allow
Allow from all
</Files>
<Files "/home/sites/domain.com/web/ecommerce/return_url.php">
Order Deny,Allow
Allow from all
</Files>
Won't be able to test this until i go live but i put it in if anyone can see anything wrong with this, please let me know!