HI
I have an website,
I need a code that automaticly leads the visitor to an other website
for example
they go to www.mywebsite.com/mypage
and it automaticly sends them to (without clicking anything):
www.otherwebsite.com
this must be possible, can somebody help me please
Yes, it is possible. You can do it in your web server’s configuration or htaccess file.
http://httpd.apache.org/docs/2.4/rewrite/remapping.html#old-to-new-extern
Discussion
In this example, as contrasted to the internal example above, we can simply use the Redirect directive. mod_rewrite was used in that earlier example in order to hide the redirect from the client:
Redirect /foo.html /bar.html
So you could try this:
Redirect /mypage http://www.otherwebsite.com
You can use a status code after the redirect if you want such as this:
Redirect 301 /mypage http://www.otherwebsite.com
The code above is not tested but I think it should work. See the link above and this one for further details:
http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect