WordPress.org

Ready to get started?Download WordPress

Forums

Repurposing WordPress blog (3 posts)

  1. forquare
    Member
    Posted 2 years ago #

    Hello all,

    I have my website and WordPress installed on a Linode server running Ubuntu.
    The directories are:
    ~/public_html - Website
    ~/public_blog - WordPress installation

    My DNS and site config is set up so that:
    hashbang0.com - Points to website in ~/public_html
    blog.hashbang0.com - Points to WordPress install in ~/public_blog

    Site config as follows:

    <VirtualHost 123.456.789.000:80>
         ServerAdmin user@gmail.com
         ServerName hashbang0.com
         ServerAlias www.hashbang0.com
         DocumentRoot /home/user/public_html/
         ErrorLog /home/user/log/error.log
         CustomLog /home/user/log/access.log combined
    </VirtualHost>
    
    <VirtualHost 123.456.789.000:80>
         ServerAdmin user@gmail.com
         ServerName blog.user.com
         ServerAlias blog.user.com
         DocumentRoot /home/user/public_blog/
         ErrorLog /home/hashbang0/log/blog_error.log
         CustomLog /home/hashbang0/log/blog_access.log combined
    </VirtualHost>

    Now, I have had enough of tinkering with PHP, HTML, etc. I want to move my WordPress installation so that visitors to hashbang0.com see the WordPress site. At the same time, anyone with links to the old blog.hashbang0.com (most notably RSS links and a few links on StackOverflow, etc.) shouldn't be cut off.
    I'm guessing I could adjust the first part of my site config to:

    <VirtualHost 123.456.789.000:80>
         ServerAdmin user@gmail.com
         ServerName hashbang0.com
         ServerAlias www.hashbang0.com
         DocumentRoot /home/user/public_blog/
         ErrorLog /home/user/log/error.log
         CustomLog /home/user/log/access.log combined
    </VirtualHost>

    And everything will be well?
    Should I look at changing directories or putting some redirect in place for the future? Or would running a small, personal, site like this be OK?

    Regards,
    Ben

  2. forquare
    Member
    Posted 2 years ago #

  3. forquare
    Member
    Posted 1 year ago #

    I think that my question here barks up the wrong tree...However, s_ha_dum, thinks this is more informative.

    Any help is very obliged...

Topic Closed

This topic has been closed to new replies.

About this Topic