OK, I'm trying to rewrite http://tdperry.com to go to http:/tntcomputersvc.com.
Here is what I have listed in my one (and only) vhost definition for the rewrite rules
From everything I've read, it should be working - but it's not.
My error log shows this (enabled rewrite logging level 9)
Any suggestions?
Here is what I have listed in my one (and only) vhost definition for the rewrite rules
Code:
RewriteCond %{HTTP_USER_AGENT} ^NameOfBadRobot
RewriteRule ^/nospider/ - [F]
RewriteCond %{HTTP_HOST} ^tdperry.com$ [NC]
RewriteRule ^(.*)$ http://tntcomputersvc.com/$1 [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
From everything I've read, it should be working - but it's not.
My error log shows this (enabled rewrite logging level 9)
Code:
2014-03-20 07:41:25.944 [INFO] [64.188.254.247:63759] [REWRITE] Cond: Match 'tntcomputersvc.com' with pattern '^tdperry.com$', result: -1