Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default redirecting to new domain on same server

    Hi

    Site is changing its domain name (so its on the same server), so i just want to redirect any traffic going to the old name to the new name, site structure is identical etc the old domain name is still live and pointed at the server and will be for the forseeable future

    I just want to confirm this will work, as i have never redirected the main domain on a server to the same server


    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^oldname.com$
    RewriteRule ^(.*)$ http://newname.com$1 [R=301,L]

    obviously I will be changing the configure files accordingly.

    I also assume paypal will need to be reconfigured (or will it work ok)
    Last edited by nigelt74; 10 Jun 2011 at 05:23 AM.
    Webzings Design
    Semi retired from Web Design

  2. #2
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: redirecting to new domain on same server

    Anyone know I just want to make sure before i make the switch as i can't test it till i have everything sorted
    Webzings Design
    Semi retired from Web Design

 

 

Similar Threads

  1. v150 Transferring install on same godaddy server to a new domain
    By reachesfar in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 29 May 2012, 03:21 PM
  2. Transfer installation to a new domain but same server
    By gyro123 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 7 Nov 2010, 07:22 PM
  3. moving cart to a new domain (same server)
    By iddy in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 25 May 2010, 12:04 AM
  4. Replies: 2
    Last Post: 24 Feb 2009, 09:43 AM
  5. How to move from subdomain to new domain on same server?
    By STFlats in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 22 Oct 2008, 07:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR