Reply to topic  [ 1 post ] 
Repurposing WordPress blog 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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


Thu Jul 12, 2012 1:23 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.