Posted by boxer, 12-12-2009, 03:11 AM | Hello,
I have a small problem here, i have 2 domains
site.com
site.org
the main site is site.com and i need to let anybody go to site.org to move to site.com, i know it's easy but sorry for my pure english, i have this rules in site.org
so now every one go to site.org well move to site.com, but i need to change this rules, so if anyone go to site.org/vb well move to site.com/vb and if so site.org/stuff well move to site.com/stuff
thanks for any help...
|
Posted by supportproTech, 12-12-2009, 04:16 AM | Try the below code in htaccess,
|
Posted by boxer, 12-12-2009, 04:28 AM | is this right ?
|
Posted by boxer, 12-12-2009, 04:30 AM | doesn't work... still didn't change from site.org/vb to site.com/vb
|
Posted by madaboutlinux, 12-12-2009, 05:04 AM | Edit the .htaccess of site.org and try the following
|
Posted by boxer, 12-12-2009, 05:09 AM | Thansk mad but doesn't work eather..
|
Posted by madaboutlinux, 12-12-2009, 05:47 AM | What about this?
Haven't tested it but either of these two should work.
|
Posted by ksv2nash, 12-12-2009, 05:55 AM | Hello,
Use following scripts
Redirect code in .htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} ^dev.abc.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.xyz.abc.com$
RewriteRule ^(.*)$ http://abc.dyndns.org/$1 [R=301,L]
this will redirect subdomain xyz to abc.dyndns.com
|
|
Add to Favourites
Print this Article |