I have my main account on a server set up for enterprisejm.net. In other words, the location of that domain is public_html/ All other domains are in subfolders located in that same directory, including my flooring forum thefloorpro.com: public_html/tfpcom.
I discovered tonight (after being on this server since last August) that the so-called automatic redirect in my cPanel isn't working. So, you could actually get to my flooring site via tfpcom.enterprisejm.net. I manually added the following .htaccess redirect in my tfpcom folder:
It is s'posed to redirect any traffic looking for any file or folder via tfpcom.enterprisejm.net or www.tfpcom.enterprisejm.net to www.thefloorpro.com. Is that correct? Is there a better code to redirect anyone (like a search engine listing) looking for a specific page or file to the correct corresponding page or file on www.thefloorpro.com, no matter where it might reside there?Code:RewriteCond %{HTTP_HOST} ^tfpcom.enterprisejm.net$ [OR] RewriteCond %{HTTP_HOST} ^www.tfpcom.enterprisejm.net$ RewriteRule ^(.*)$ http://www.thefloorpro.com [R=301,L]
Thanks for any help with this.
Jim


LinkBack URL
About LinkBacks





Reply With Quote