Results 1 to 5 of 5

Thread: recommended way to change domain names

  1. #1
    Join Date
    Mar 2009

    recommended way to change domain names

    I am currently hosting my website at home using xampp and a DynDNS account. everything is working great and I have worked hard to get good Google results. Unfortunately, I need to change my domain name of my site. I have read several articles and know there are several ways of doing this, but I am just wondering which one is the recommended way of doing so? One way I figured I can do this is to just point my old and new domain name to the same ip address of my computer I am hosting from (i believe my DynDNS account lets me do so). The other way, which appears to be the better way but not sure, is to use a 301 redirect. If I were to go this route, how exactly do i set it up? I understand that it is basically just putting a line of code in the header of the old site which directs it to the new one. This is fine and all, but brings on the question of, am I technically hosting 2 sites on my computer now?

    I would have www.olddomain.com pointing to my ip of my computer with basically a blank index.html with the redirect header redirecting it to www.newdomain.com which would also point to the same ip of my computer. If this is the case, how would I, technically speaking, host those 2 sites from one computer? An additional question is do I just place the redirect code in the index.html or do I place it in every page of the site and redirect it to the same page on the new domain? If the process of using 301 redirect is different from what I am assuming then can someone please elaborate on exactly how to use it in my situation?

    Thank you for any help

  2. #2
    Join Date
    Mar 2011
    You should use a 301 redirect. This will not only accommodate users who have bookmarked your site with your original domain name or who click on links to your original domain name, it will also tell the search engines that your site has moved and they will transfer most of the value of the links that point to your original domain name to the new one. It may take a few weeks for the search engines to absorb all of the changes, so you'll probably see a dip in your rankings and traffic for a while after you do this.

    You don't need to bother with your settings in DynaDNS. Just use an .htaccess file on your home server. A search on "htaccess change domain name" should give you the specific .htaccess code required. And once you set up the 301 redirect, use an online server response checker to make sure that your original domain name responds with the correct 301 redirect code and the correct URL for your new domain name.
    Last edited by rtrethewey; 10-18-2012 at 02:53 PM.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Mar 2009
    OK, so I created a .htaccess file and placed it in the root of my site directory. What I entered in the file is as follows from a random tutorial site: (replacing XXX with my old address and YYY with my new one)
    <IFModule mod_rewrite.c>
    RewriteEngine on
    Options +FollowSymlinks
    RewriteBase /
    RewriteCond %{HTTP_HOST} XXX\.com
    RewriteRule ^(.*) http://www.YYY.com/$1 [L,R=301]

    For now my new domain name is purchased, but not set up yet, so I just replaced what the new one should be with google.com for now. Technically speaking, when I enter my old domain in my browser window, I should be redirected to google correct? Unfortunately though when I enter the address in my browser I get a error:

    Server error!

    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

    Error 500

    That is my first problem. My other problem is how to set up my new domain name to point to my existing site on my computer (just like my old one has been)? I would assume that I would have to open another DynDNS account and point my new name to my computer just like i originally did with my old name. Is this the correct missing step that is confusing me?

    It seems logical that this is what I need to do and if I am correct it should work as follows: the user enters my old domain name in a browser. It, behind the scenes, directs them to my ip address and reads the .htaccess file which sees that they are looking for my old name and then redirects them to my new name. my new name directs them to the same ip address and reads the .htaccess file again, this time sees that they are looking for my new name and lets them continue to view the site. If a user enters the new name directly it "skips" the .htaccess redirect and lets them continue on to view the site. Am I correct on my assumptions of how this would work?
    If this is the case then, what is the point of using the .htaccess file then? These 2 DynDNS accounts would essentially point both old and new names to the same physical site. The users would be reaching the same site regardless of which domain they entered or searched for.

  4. #4
    Join Date
    Mar 2011
    I'm not an .htaccess expert, but try:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    Options +FollowSymlinks
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^XXX.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.XXX.com$
    RewriteRule ^(.*)$ http://www.YYY.com/$1 [L,R=301]
    Rick Trethewey
    Rainbo Design

  5. #5
    Join Date
    Aug 2012
    1453 Gingerwood ave, Milpitas CA 95035,
    Agree with "rtrethewey"..
    Use 301 redierct. It will be helpful to redirect the trafic of your old domain to new domain.
    Beneficial in both the cases, visitors and crawler.....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.12212 seconds
  • Memory Usage 2,877KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (5)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates