homepage Welcome to WebmasterWorld Guest from 54.205.207.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Domain Names
Forum Library, Charter, Moderators: buckworks & webwork

Domain Names Forum

    
pointing a domain name
2 domains , 1 website
cuervo

5+ Year Member



 
Msg#: 4117650 posted 12:51 pm on Apr 18, 2010 (gmt 0)

please someone advice , i have two domains .com .net i need them to be active and pointing to one website , .com already working now i need .net to be the same , please advice

 

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4117650 posted 5:03 am on Apr 19, 2010 (gmt 0)

A 301 Permanent Redirect will tell the search engines and other visitors where to go. That's something you set on your web server. Another way to accomplish the same would be to redirect the domain via your registrar.

cuervo

5+ Year Member



 
Msg#: 4117650 posted 9:08 am on Apr 19, 2010 (gmt 0)

Another way to accomplish the same would be to redirect the domain via your registrar

how to please ?

cuervo

5+ Year Member



 
Msg#: 4117650 posted 9:16 am on Apr 19, 2010 (gmt 0)

i want it to be working like the .com one , i mean if i will navigate in it for example plaf.net/page.php , i dont want redirections

cuervo

5+ Year Member



 
Msg#: 4117650 posted 9:22 am on Apr 19, 2010 (gmt 0)

if through cpanel i will add it as addon domain and choose for it www as folder , would this cause something ? im afraid its will remove the root files

HuskyPup



 
Msg#: 4117650 posted 1:25 pm on Apr 19, 2010 (gmt 0)

Another way to accomplish the same would be to redirect the domain via your registrar.


This is the best way to do it. Do you have a control panel at the registrar where you bought your names?

If not you will have to ask your registrar to do it for you, this may be free or incur a small charge.

If you have a control panel then you should be able to set-up "url forwarding" sometimes know as "web forwarding".

Don't forget to ensure both www and non-www are pointed at the .com

cuervo

5+ Year Member



 
Msg#: 4117650 posted 2:28 pm on Apr 19, 2010 (gmt 0)

can you please give more infos about this forwarding

HuskyPup



 
Msg#: 4117650 posted 7:24 pm on Apr 19, 2010 (gmt 0)

I can only tell you what my registrars' control panels offer me, each one is different to use but they all refer to "web/url forwarding".

TheMadScientist

WebmasterWorld Senior Member themadscientist us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4117650 posted 3:37 am on Apr 20, 2010 (gmt 0)

Point them both to be served from the same directory on an Apache Server with mod_rewrite and do this in the .htaccess or httpd.conf:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www\.the-domain-you're-not-redirecting.com\.com)?$
RewriteRule .? http://www.the-domain-you're-not-redirecting.com%{REQUEST_URI} [R=301,L]

Edited the redirect to a negative match...
Oops! Duh. Silly me the first time.

Basically all you have to do is canonicalize the one you don't want redirected if they're both served from the same directory on the same server and it's done.

I would NOT use a 'forwarding' setting in a control panel, because from what I've heard they can often serve a 302 rather than a 301 redirect, which is not a great idea, to say the least.

In one post you wondered about what would happen if you pointed it to a directory on the server that already exists and it's overwritten?

Create another duplicate directory of the site called www.thesite.com1 before you try it, and if it's overwritten delete the 'empty' and remove the 1 from the end of the duplicate. IMO It shouldn't take your site down for more than 10 to 30 seconds if something goes wrong and you're on a good connection and quick with an FTP program.

I could delete one directory and rename another in a hurry if I knew I was going to do it as soon as a process finished...

HuskyPup



 
Msg#: 4117650 posted 8:46 pm on Apr 20, 2010 (gmt 0)

I would NOT use a 'forwarding' setting in a control panel, because from what I've heard they can often serve a 302 rather than a 301 redirect


I'm using web forwarding on about 100 domain names with four different registrars and have never experienced any problems insofar as I am aware.

TheMadScientist

WebmasterWorld Senior Member themadscientist us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4117650 posted 2:12 am on Apr 21, 2010 (gmt 0)

Hmmm, well if your join date is the time you've been online, then consider yourself lucky for probably not being able to remember the 302 redirect fiasco... It's possible hosts have changed to 301s too, but if they haven't then it's usually the correct way to handle the situation with what it is, which is a 301 Permanent Redirect. Either way, I hope you continue to have the same luck with them.

HuskyPup



 
Msg#: 4117650 posted 12:41 pm on Apr 21, 2010 (gmt 0)

Hmmm, well if your join date is the time you've been online,


Hahahaha....excellent, it's plainly obvious you don't know me:-)

First sites launched in 1994, first membership of WebmasterWorld in about 1998 I would say...like many here I keep re-inventing myself with total posts well in excess of 15k+ minimum!

Seriously though I've never knowingly had a problem, now whether that is just dumb luck or the registrars I work with I have no idea since I've never had to question it.

TheMadScientist

WebmasterWorld Senior Member themadscientist us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4117650 posted 3:17 pm on Apr 21, 2010 (gmt 0)

LOL. Don't know you a bit, but since I've been around a bit longer than my name would suggest, I do make sure I don't read too much into one... Glad it hasn't ever been an issue. I haven't either, but on my side end I think it's more because I haven't used a 302s very often. I read about way too many issues to bother.

TheMadScientist

WebmasterWorld Senior Member themadscientist us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4117650 posted 6:57 pm on Apr 21, 2010 (gmt 0)

Want to know what happens when you usually edit extensively before (and after) you post because you have difficulty typing what you mean the first time but decide to post on your way out the door anyway? See Above... LMAO

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Domain Names
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved