I use a domain (www.example.com
), which I would like to redirect to an different web space (www.example1.com/user567
).
What I use so far is an index file with a redirect header:
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.example1.com/user567");
exit();
?>
I would like to keep the root URL, when a user access the site. Currently the browser (and search results) are just redirected to www.example1.com/user567
.
I can not access the .htaccess file. Is there another technique I can use?