Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: tarball on August 25, 2005, 03:16:01 PM
-
I know this isn’t strictly an SME problem, but hoping somebody will help out.
I set up SME 6.0 for my employer just as the company was changing from olddomain.com to newdomain.com. I made the server name box.newdomain.com and added olddomain.com as a virtual domain by using the server-manager. Everything went to the same place and all was good . . . for a while.
Now double domain names are just hurting our SEO efforts, so we want olddomain.com to redirect to newdomain.com, changing the address in the browser automatically. So, I made an i-bay for olddomain.com and pointed to it in Configuration -> Domains -> Content-> Modify.
That done, I put “Redirect 301 / http://newdomain.com” (without quotes) in an .htaccess file in the root of the i-bay, and that works just fine for hits to http://olddomain.com. The problem: If I hit http://olddomain.com/somedir/content.html, as one would from a Google search, I get a browser popup or 404 if the page tries to load telling me that http://newdomain.comsomedir/content.html cannot be found. If you look closely, you can see that it has concatenated the content directory to "newdomain.com" without adding a / after .com!.
I then tried adding “Redirect 301 /somedir http://newdomain/somdir” in an .htaccess in /somedir, (no luck) and I put “Redirect /somedir http://newdomain/somdir” in the Primary i-bay stanza in httpd.conf, too (after changing the AllowOverride to all). Either I get the concatenation problem above or the opposite, http://newdir.com//somedir/content.html; note the extra slash! The later redirects but displays the text of the page without the images! Weird...
I can’t be the only one to have gone through this. Google reading tells me to do the things I’ve tried and “it just works.” But it doesn’t for me, at least not on SME. Can anyone help?
-
Hello
Try using the apache redirect it may work
here are some examples located at
http://forums.contribs.org/index.php?topic=28477.msg118344#msg118344
it does not have to be a ssl redirect check the apache link for more information
hope this helps