d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Url Redirection > Err.. Maybe This Is A Url Mask?
Add Reply New Topic New Poll
Member
Posts: 2,217
Joined: Sep 10 2007
Gold: 35.88
Jan 29 2014 11:24am
Hey guys/gals,

It's been a pretty good minute since I've had to come to JSP for help, but you've all been great in the past and I've got another situation I need help digesting.

I recently took over a web development project for a local music camp in a neighboring town.
All the development is going smooth, but they recently changed names and they want to use a new url.
Here's the problem..

My client has two urls for their site.
The original url is site123.com
The new url is siteABC.com

They both take you the same page, with the same content, same backend, etc.
The client it would like for siteABC.com to be the only URL that is ever displayed, regardless of how the site is reached.
The problem is that if i setup a typical 301 redirect the site gets stuck in an infinite loading loop.
I believe this is because siteabc.com is pointed straight at "site123.com", however I am still trying to figure out exactly what it is they have going on.

Any ideas? btw, they are using wordpress, apache, linux

Thanks all,
<3 Grievance
Member
Posts: 51,975
Joined: Feb 21 2012
Gold: 0.00
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Jan 29 2014 12:45pm
you have to park the domain, not redirect
Member
Posts: 2,217
Joined: Sep 10 2007
Gold: 35.88
Jan 29 2014 01:35pm
Quote (labatymo @ Jan 29 2014 12:45pm)
you have to park the domain, not redirect


are you suggesting I park their old domain? what happens then when an old customer tries to access their site using the old url? Would they not land on a parking page?

Its obvious to me that I need to doing some flipflopping.. just not sure the best way to go about it.
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Jan 29 2014 01:37pm
Quote (labatymo @ Jan 29 2014 06:45pm)
you have to park the domain, not redirect


this

you cant really accomplish this with code, you need to go to your host and park that domain.
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Jan 29 2014 01:53pm
Quote (grievance @ Jan 29 2014 03:35pm)
are you suggesting I park their old domain? what happens then when an old customer tries to access their site using the old url? Would they not land on a parking page?

Its obvious to me that I need to doing some flipflopping.. just not sure the best way to go about it.


it's the same as if you go to d2jsp.com
Member
Posts: 3,013
Joined: Jan 14 2008
Gold: 213.00
Feb 1 2014 11:25pm
I would achieve this with a php command like header.

<?php
header("location:site123.html")
?>

this would send you from siteabc to site123 completely redirecting you to use that site.

This post was edited by PumperNickle on Feb 1 2014 11:26pm
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Feb 2 2014 11:33am
Quote (PumperNickle @ Feb 1 2014 11:25pm)
I would achieve this with a php command like header.

<?php
header("location:site123.html")
?>

this would send you from siteabc to site123 completely redirecting you to use that site.


wrong

Quote (GamingOn @ Jan 29 2014 12:43pm)


wrong

Quote (labatymo @ Jan 29 2014 12:45pm)
you have to park the domain, not redirect


not entirely true


You can tackle this in a couple ways, doing this via code is terrible for seo reasons and you get duplicate results in searches, unless you specify 301 headers
You had the correct answer, and that is a 301 redirect

chances are your redirect was setup wrong if it was stuck in a loop, try adding the following to your .htaccess file in the root dir of the old site

Redirect 301 / http://siteABC.com/

This post was edited by 0n35 on Feb 2 2014 11:34am
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll