| | #1 |
| Active Warrior Join Date: 2013
Posts: 70
Thanks: 20
Thanked 2 Times in 2 Posts
|
Let's say i have a website with a domain example.com , site is a big site with a lot of content, etc.. I have another the same domain, just with ending .net (example.net). Now my question would be, how i can "attach" this .net domain, so that my website with .com domain could be accessible with .net domain as well? Is that even possible? I mean basically would be the same site, just with different ending (all content, pages, etc.. would be in that .net domain as well as it is now with .com domain) So let's say i have some page already with .com domain (example.com/page1/), so i want the same page accessible with .net domain as well, so it would be example.net/page1/ I hope you understand what i have in mind. Any ideas on this? |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2011
Posts: 239
Thanks: 39
Thanked 24 Times in 22 Posts
|
you have to use .htaccess rules to rewrite urls. Redirection and url rewriting will do for you ![]() there are many websites that can help you to make url rewrites online. |
| |
| | #3 | |
| New Warrior Member Join Date: 2006 Location: Essex Country NJ
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post
|
| |
| |
| | #4 |
| Active Warrior Join Date: 2013
Posts: 70
Thanks: 20
Thanked 2 Times in 2 Posts
|
But i'm asking about running the same site on both .com and .net domains. If i use redirect function, does both domains will work for one site?
|
| |
| | #5 |
| Active Warrior War Room Member Join Date: 2013
Posts: 48
Thanks: 0
Thanked 9 Times in 9 Posts
|
Well it depends on the script if it uses $_SERVER['SERVER_NAME'] to find the domain name then It will work. If you have to set the domain name in the admin panel or the config file somewhere then the links form the .net domain will point to the .com domain I would guess.
|
| |
| | #6 |
| Active Warrior Join Date: 2011
Posts: 36
Thanks: 5
Thanked 1 Time in 1 Post
|
Hello, can you Explain a bit about your site? is it a word press site or any blogger site? or custom made web site? ...if your are with php hosting site with cpanel. then i can help you .
|
| For those who are searching for Direct mobile CPI offers please contact me at skype: madi.webz | |
| |
| | #7 |
| Monkey War Room Member Join Date: 2013 Location: Vantaa, Finland
Posts: 4,324
Thanks: 336
Thanked 697 Times in 617 Posts
|
You can do it, but do you have any particularly good reason for doing so? Having the exact same content in two addresses isn't good for SEO.
|
| Links in signature will not help your SEO. Not on this site, and not on any other forum. Who told me this? An ex Google web spam engineer. What's your excuse? | |
| |
| | #8 |
| Warrior Member Join Date: 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
Best option is 301 redirect the .net domain to .com domain. You can also open the .com domain in an iframe on the .net domain, and put a robots.txt to forbid search engines from index the .net domain, but i don't think is an elegant solution. 301 redirect is fast, easy and SEO friendly
|
| |
| | #9 |
| Warrior Member Join Date: 2013
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
|
Wherever you registered your domain you should be able to change the domain's records. Set up the A record to point to the same host as your other domain. Or, if you want to simply redirect them, set up a URL redirect.
|
| |
|
| Bookmarks |
| Tags |
| adding, domain, site |
| |