Hi there,

In my public_html folder I have the following .htacces file:

Code:
Options +FollowSymLinks 
RewriteEngine on 

RewriteCond %{HTTP_HOST} site1.com
RewriteCond %{REQUEST_URI} !^/site1
RewriteRule ^(.*)$ site1/$1 [L]

RewriteCond %{HTTP_HOST} site2.com
RewriteCond %{REQUEST_URI} !^/site2
RewriteRule ^(.*)$ site2/$1 [L]
I also have a cron job running the following command:
Code:
/usr/bin/php5 /home/sites/{domain-name}/public_html/site2/backup_db.php
If I disable the .htaccess file, the cron job will execute, otherwise it wont. I'm not really sure why this is happening, since the cron job is using an absolute path to a file on the server, and not making any requests through the server. Isn't it?

Has anyone come up with this sort of thing before?

Many thanks