Forum Moderators: phranque

Message Too Old, No Replies

redirect main url to new url

rewrite url for new domain address without user notice

         

angel3m

6:32 pm on Jun 18, 2009 (gmt 0)

10+ Year Member



Hi all,

I'm a grfix designer. had to deal with this unwanted thing.
cuz im not familiar with these kinda stuff. so please guyz really need ur help here.

what im looking is

for example:

www.clientdomain.com

client website on my server:

www.mydomain.com/clientswork/uhu/index.php

all the script works with index.php and other pages are: index.php?pages=abcxyz

at the end i want:

www.clientdomain.com/index.php

so plz guyz help me out here i will be very thankful to you

:)

g1smd

6:35 pm on Jun 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am not all that clear on what you are asking.

Please show your example code, with a comment before each line describing what it should do.

angel3m

7:43 am on Jun 20, 2009 (gmt 0)

10+ Year Member



thank you for your reply

what i want to say here is

i want to redirect the old domain to a new domain
but in address bar it will show the old domain

jdMorgan

2:15 pm on Jun 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is not possible as you state it. Browsers must show the correct URL in their address bar for security reasons.

Also, doing such a 'trick' will result in duplicate-content problems with search engines, possibly damaging both sites' rankings.

Furthermore, if this is intended to fool visitors in any way, and the search engines discover it, you may reasonably expect a lifetime ban on all of your sites (Remember that Google is now a domain registrar, and has access to *all* domain registration information -- including so-called 'private' registration data).

The only way to do this if the two domains are separately hosted is to reverse-proxy requests from the old domain to the new domain. In this case, forwarded traffic to the new domain will be logged as coming from the old domain's server, and it will be impossible to tell where that traffic actually came from without looking at the server logs on the old domain's server -- Logs and 'stats reports' on the new domain's server will be fairly useless, unless you can change the old domain's server configuration to send the X_Forwarded_For header, and change the new domain's server configuration to log X_Forwarded_For instead of logging Remote_Host or Remote_Addr when the Remote_Addr and Via headers indicate traffic proxied through the old domain's server. This set-up requires access to the server configuration files on both servers, and won't be possible on shared hosting plans.

Jim