Results 1 to 4 of 4

Thread: 301 redirect from subdomain to domain

  1. #1
    Senior Member agua's Avatar
    Join Date
    Sep 2005
    Location
    Pottsville, NSW
    Posts
    531

    301 redirect from subdomain to domain

    I have a site which was in a subdomain (when I mean subdomain i mean http://sub.domain.com) which I now want to move to its own domain... can I just redirect the whole lot at once like this
    Code:
    Redirect /olddirectory http://yoursite.com/
    or do I have to do each page separately?
    I Do Website Design - but I am here to learn all about publishing

  2. #2
    Website Developer
    Join Date
    Oct 2004
    Posts
    1,607
    This is what I used with .htaccess to redirect a forum to its another domain name

    Code:
    AddType application/x-httpd-php .htm .html
    
    Redirect 301 /forum http://www.newdomain.com/forum
    Try this; I am not certain if it will work but this is basically what you want:

    Code:
    Redirect 301 http://forum.olddomain.com http://www.newdomain.com
    Make more money - Read my Web Publishing Blog

  3. #3
    Senior Member agua's Avatar
    Join Date
    Sep 2005
    Location
    Pottsville, NSW
    Posts
    531
    Thanks Andrew
    I Do Website Design - but I am here to learn all about publishing

  4. #4
    Junior Registered
    Join Date
    Jan 2008
    Posts
    1

    Question Complicated site restructuring and 301's to accompany it - need help!

    Hey guys,
    I just finished re-designing my whole site. I used to have subdomains for subsections of my site and I want to do away with that and go to directories.

    I used to have:
    1) subdomain.whatever.com
    2) subdomain.whatever.com/index.php?section=somepage

    Now I want to have it redirected
    1) www.whatever.com/some_new_folder_name
    2) http://www.whatever.com/some_new_fol..._page_name.htm


    This is what I have - Im really stuck when it comes to (2):
    Code:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^hosting.osirion.co.za [NC]
    RewriteRule ^(.*)$ http://www.osirion.co.za/web_hosting/ [L,R=301]

    Please help! You can also suggest how to fix the above if its un-optimal/wrong :P THANKS!

Similar Threads

  1. Choosing effective Domain Name
    By Nikolayeva Vica in forum Domain Names
    Replies: 1
    Last Post: 02-07-2006, 06:26 PM
  2. Subdomain redirect
    By tandiono in forum Website Programming & Databases
    Replies: 1
    Last Post: 10-11-2005, 04:49 PM
  3. Best way to Redirect a domain name?
    By MarkB in forum Search Engine Optimization
    Replies: 4
    Last Post: 05-18-2005, 05:05 PM
  4. PR7 domain or not?
    By Dan Morgan in forum Domain Names
    Replies: 12
    Last Post: 05-18-2004, 02:15 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
  •