+ Reply to Thread
Results 1 to 4 of 4

Thread: Can't see Wordpress Content after switching add-on to primary domain?

  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Default Can't see Wordpress Content after switching add-on to primary domain?

    Hi

    I am aware that something changes when you change your add on domain so that it becomes your primary domain. So what do I do in order to make my Wordpress content viewable again? My old primary domain was hkactivity.com and the add-on domain which I changed to become the new primary domain is facebookhacker.net

    thanks!

  2. #2

    Default

    You will have to move all your files in the 'facebookhacker' directory to your root public_html directory.

    That means before this your account will be like
    public_html/[files]
    public_html/facebookhacker/[files2]

    You need to move [files2] to [files]
    Read my complete BlueHost Review and HostMonster Review to find out who is better now!

  3. #3
    Join Date
    Jun 2009
    Location
    Las Vegas
    Posts
    27

    Default

    You can also use mod_rewrite in htaccess.

    Code:
    # Do not change this line.
    Options -Indexes
    
    RewriteEngine on
    
    #makes sure www. is included in www.Yourdomain.com
    RewriteCond %{HTTP_HOST} ^Yourdomain.com$
    
    RewriteRule ^$ http://www.Yourdomain.com/index.php [L,R=301]
    
    
    
    # Change yourdomain.com to be your main domain.
    
    RewriteCond %{HTTP_HOST} ^(www.)?Yourdomain.com$
    
    
    # Change 'subfolder' to be the folder you will use for your main domain.
    
    RewriteCond %{REQUEST_URI} !^/Yourdomain/
    
    
    # Don't change this line.
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Change 'subfolder' to be the folder you will use for your main domain.
    RewriteRule ^(.*)$ /Yourdomain/$1
    
    # Change yourdomain.com to be your main domain again.
    # Change 'subfolder' to be the folder you will use for your main domain
    # followed by / then the main file for your site, index.php, index.html, etc.
    
    RewriteCond %{HTTP_HOST} ^(www.)?Yourdomain.com$
    RewriteRule ^(/)?$ Yourdomain/index.php [L]
    it's in the bluehost support center's knowledgebase, I'm just too lazy to look for the link right now. Anyway it works, and it is much cleaner to have all of your domains in subfolders.

  4. #4
    Join Date
    Feb 2010
    Posts
    1

    Smile Need help....

    I went through tons of searching and cannot find a solution. I finally found this thread and the answer to my problems.

    Can someone please help me with removing the www. from the equation?

    So I rather have http://example over http://www.example.com

    Thanks!

+ Reply to Thread

Posting Permissions

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