x404.co.uk
http://www.x404.co.uk/forum/

Repurposing WordPress blog
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=16835
Page 1 of 1

Author:  forquare1 [ Thu Jul 12, 2012 1:23 pm ]
Post subject:  Repurposing WordPress blog

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:
Code:
<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:
Code:
<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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/