• 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 [email protected]
         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 [email protected]
         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 [email protected]
         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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Repurposing WordPress blog’ is closed to new replies.