Activity Stream
48,167 MEMBERS
6739 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1.     
    #1
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com

    Default Domain Redirect?

    Let's say I have a domain name called

    ILOVEKWWH.COM

    and have pages already indexed on google, Example:
    iloveKWWH.com/esoexposed
    iloveKWWH.com/howtohackKWWH
    iloveKWWH.com/welovewarez

    etc.

    but lets say i wanted to redirect that domain and its indexed pages to a new domain? ( I know how to redirect domain but not its indexed pages etc)

    Lets say my new domain is ihateKWWH.com

    For example if someone types in their browser/or click this link on google: iloveKWWH.com/esoespoxed I would like them to get redirected to ihateKWWH.com/esoexposed instead of redirecting just to the new domain.


    what should i put on the .htacess file?



    /noob
    bxflow Reviewed by bxflow on . Domain Redirect? Let's say I have a domain name called ILOVEKWWH.COM and have pages already indexed on google, Example: iloveKWWH.com/esoexposed iloveKWWH.com/howtohackKWWH iloveKWWH.com/welovewarez etc. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Try from cPanel

  4.     
    #3
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    wow its a 301 redirect, I think

    im a noob.

  5.     
    #4
    Member

  6.     
    #5
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    not working through Cpanel..

    anybody knows the exact code?

  7.     
    #6
    Member
    301 .htaccess redirect. The safest way to redirect to another domain.

    Read it here:

    http://www.tamingthebeast.net/articl...1-redirect.htm

  8.     
    #7
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    wouldnt that be redirecting just the /blahblah.html instead of iloveKWWH.com/sex to ihateKWWH.com/sex

  9.     
    #8
    Member
    So, you are talking about other thing now, just add same mod_rewrite in the .htaccess file on the new server where are the new files.

    At the first site, you have

    blabla.html , but It's converted into a friendly URL via mod_rewrite.

    RewriteRule ^whatthefuck([\/_-])?$ whatthefuck.html

  10.     
    #9
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    there is no new server. i basically want to replace one current domain.

    lets say my main site is iloveKWWH.com but i want to replace it to ihateKWWH.com

    thats easy, but that means all my other indexed files will be gone so instead of losing them make them get redirected to ihateKWWH.com

    so when someone clicks on google a link named iloveKWWH.com/ilikeyou i would like them to get redirected to ihateKWWH.com/ilikeyou, not just ilikeyou but every other single link under that domain to get redirected

    EDIT: I got, the code that works is the one below. but i also must make a new directory etc, I thought i could of just replace the current directory but its all good


    RewriteRule ^(.*)$ http://www.new.com/$1 [R=301,L]

  11.     
    #10
    Member
    I really don't know, only safe way I know is 301 redirect. So basically, let me understand this.

    You got.

    ImmortalChickensAttack.com

    There are 3 files on that site:
    chicken.html
    savior.html
    drdre.html

    And they are converted to pretty URL's via mod_rewrite, as I see you are always typing the "name" without .html extension. And you want to redirect ImmortalChickensAttack.com on:

    DogsAreGods.com on which it will be same like on your site (with pretty URL's.)

    This .htaccess should be on ImmortalChickensAttack.com:

    RewriteEngine on
    Options +FollowSymLinks


    RewriteRule ^chicken([\/_-])?$ chicken.html
    RewriteRule ^savior([\/_-])?$ savior.html
    RewriteRule ^drdre([\/_-])?$ drdre.html

    redirect 301 "/chicken.html http://www.dogsaregods.com/chicken.html
    redirect 301 "/savior.html" http://www.dogsaregods.com/savior.html
    redirect 301 "/drdre.html" http://www.dogsaregods.com/drdre.html

    And you need to have those files on another domain, if you just changed your sites link.

    This should be .htaccess on DogsAreGods.com:

    RewriteEngine on
    Options +FollowSymLinks


    RewriteRule ^chicken([\/_-])?$ chicken.html
    RewriteRule ^savior([\/_-])?$ savior.html
    RewriteRule ^drdre([\/_-])?$ drdre.html
    Whatever, If you don't want to lose your indexed pages, this is the solution. Maybe I was wrong, but dunno. Check it out yourself.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to redirect old domain to new domain in nginx? but...
    By bachbell in forum Server Management
    Replies: 2
    Last Post: 29th Oct 2012, 02:14 PM
  2. Preferred Domain - 301 redirect - Question???
    By shaun_shaun in forum Technical Help Desk Support
    Replies: 2
    Last Post: 10th Feb 2012, 09:16 AM
  3. How to Redirect a Domain to Subdomain ? Help needed
    By AJ Blacklisted in forum Webmaster Discussion
    Replies: 6
    Last Post: 24th May 2011, 07:47 AM
  4. Replies: 4
    Last Post: 15th Nov 2010, 04:28 AM

Tags for this Thread

BE SOCIAL