.htaccess - re-direct / re-write my domain -
First of all, I have already tried to find a solution for this in the past few hours, but nothing is there But non-job solutions: (
It's very simple - I'm pointing to DNS for a new domain for my current hosting, but when I go to a new domain, Looking at the original site with my hosting)
Assume that my original site is "www.originalsite.com" - content for my new domain "www.originalsite.com/newsite.com/" (includes dots)
Now I need to rewrite myself to redirect "www.newsite.com" to my own directory and hide the directory name.
So yes, "www.newsite.com" needs to use the content in "www.originalsite.com/newsite.com/", but in the URL bar, "www.newsite.com" Is displayed as.
Cheers for any input - really appreciated :)
PS: I am using coldfusion and have already used a useful redirect, but The result is usually "www.netsite.com/newsit
oh ... and yes, I'm hoping to fix an .htaccess :) Thanks!
If you have complete control over the server, then VirtualHost in httpd.conf is probably a better solution. For example:
& nbsp; VirtualHost Newdomain.com:80> servername newdomain.com server alias www.newdomain.com DocumentRoot /path/to/webroot/newsite.com & lt; / VirtualHost & gt;
If you do not have the ability to do this directly, then any good host will provide a "park domain" function that allows you to achieve the same effect - identify the new domain and the directory that you want to point to it - Through the web control panel.
However, if you do not have the ability to do this If there is a mod_rewrite for .htaccess here, then it should work:
Rewighting On RewriteConnect% {REMOTE_HOST} (www \.)? Newdomain \. Com Recruit Rule ^ (. *) $ /newdomain.com/$1 [L]
Comments
Post a Comment