Hey guys/gals,
I use one host (Shared CrystalTech) to serve up multiple separate domains.

Trouble is Google has indexed:
1) http://MAINDOMAIN1.com/test.cfm
AND
2) http://MAINDOMAIN1.com/MAINDOMAIN1/test.cfm

I only want the first url to be indexed... but both urls above return 200 and 
dup. content.

My current htaccess implementation is:
RewriteCond %{HTTP_HOST} ^www\.MAINDOMAIN1\.com$ [NC]
RewriteRule ^(.*)$ http://MAINDOMAIN1.com/$1 [R=301,L]

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


Any ideas on how I can modify my htaccess to allow Link 1 but not allow Link 2. 
 I was unable to do it in cfapplication as the CGI and arguments.targetPage 
look exactly the same for both links 1) and 2).

Any thoughts for solving via htaccess?? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343492
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to