Forum Moderators: phranque
redirect 301 / [newsite.com...]
Now, my old site is properly redirecting when I type in [olddomain.com...] but is not redirecting when I type in [olddomain.com....]
Please help, I am new at this.
Thanks
In this case, you'll need to use the control panel to either redirect the www domain to the new site, or to 'point' requests for www.old-domain to the same directory as non-www.old-domain so that your new code can then redirect the www.old-domain requests to the new domain.
In other wordw, your new redirect code is not being executed for www.old-domain requests, so you need to find and fix that problem, or use the control panel to redirect www requests directly without using your new code for that.
Hope that makes sense, it's hard to talk about...
Jim
[edited by: jdMorgan at 6:10 pm (utc) on July 17, 2006]
Probably because www.example.com and example.com are two different domains, which need not resolve to the same Web site. Therefore, each of them must be redirected to the new domain.
Although it is common for Web hosting to be set up so that www.example.com and example.com resolve to the same Web site, this is not required. Historically, example.com would be used for internal corporate use, while www.example.com would be used to reach the public portion of the site.
So, you had to redirect them separately.
Jim
The CNAME record is modified in DNS manager on godaddy to point www to www.newdomain.com
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at AppStuff Port 80
Try adding an A record (not a CNAME) for www.oldomain.com or use a 'wildc-card' A record to catch both the domain and *any* subdomains, including "www". That is, use "*.olddmain.com. 12.34.56.78" in the A record.
Alternately, you could point all variations of olddomain.com to newdomain.com, and then use mod_rewrite to check the requested hostname on newdomain.com. If a request arrives for *.olddomain.com, 301-redirect it to newdomain.com.
Your problem description trips my "screwed-up host" detector, and you might want to work with your host(s) to resolve this issue -- That might be faster than trying to work trough it here.
Jim