Domain forwarding

Web hosting discussion, programming, and shared and dedicated servers.
2 posts Page 1 of 1
by outres » Tue Dec 11, 2012 9:50 am
I am helping a friend that has 4 domains registered at Sonic. All 4 point to the same webspace and index.html page. She now needs to have her domains pointed to her employers website to a specific page. So in theory domain mysite.com and mysite2.com all point to another domain hosted elsewhere myemployer.com/services/aboutme.html

I cannot seem to get this forwarding done. Sonic advises they do not have tools for domain forwarding. I was first advised to modify the CNAME record, but this is not correct at this records will only accept a fully qualified domain name only and not the path.

I tried various ways to redirect with htaccess. All attempts end up that the http header gets sent and appended to the destination url. The result is page not found error because url ends up http://myemployer.com/services/aboutme.htmlindex.html

Here is what I have tried:
------
index.php
<?
header("HTTP/1.1 301 Moved Permanently");
header ("Location: http://myemployer.com/services/aboutme.html");
?>
-----
htaccess

Redirect /index.html http://myemployer.com/services/aboutme.html
-----------
htaccess mod rewrite

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} mysite.com [NC]
RewriteRule ^(.*)$ myemployer.com/services/aboutme.html [R=301,L]
-------

Any ideas? I am not sure how much assistance she can get from employers host to have them do a apache config file modification which would probably handle this.

Stephen Henry
slhenry@sonic.net
by williamt » Tue Jan 08, 2013 10:12 am
outres wrote: htaccess

Redirect /index.html http://myemployer.com/services/aboutme.html
Stephen, This should work. Perhaps something else in the .htaccess file that is causing trouble?
Sr. Systems Administrator @ sonic.net
2 posts Page 1 of 1

Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 16 guests