we manage over 70 properties and each of their websites runs from the same php code with a database controlling the differences. I need to write a redirect for a specific occasion and I don't know how to create variables in .htaccess.
for example: http://www.firstproperty.com/banquet becomes http://banquet.firstproperty.com and http://www.secondproperty.com/banquet becomes http://banquet.secondproperty.com
I am not sure if I should do this as a "redirect" or a "RewriteCond/RewriteRule"
This is my .htaccess now ( it removes index.php from codeigniter friendly urls )
DirectoryIndex index.php
redirect /joinTeam.php /index.php/prop/join_team
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]