Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:17:41+00:00 2026-06-07T13:17:41+00:00

I have my website and WordPress installed on a Linode server running Ubuntu. The

  • 0

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 feeds and a few links spattered about which gain a fair amount of traffic, etc.) shouldn’t be cut off (possibly be redirected to the appropriate thing on hashbang0.com).

I guess I could possibly change the 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 I guess I’d need to update the URL in Settings > General?

I don’t want to start moving stuff and find I’ve shot myself in the foot. The WordPress howtos are great, but riddled with if this and if that…

Any help would be very much appreciated.

Ben

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:17:42+00:00Added an answer on June 7, 2026 at 1:17 pm

    Ben,

    Your best bet is to litterally move the entire blog folder over to your public folder. In this case, you will want to write a redirect htaccess script on the blog subdomain.

    RewriteCond %{HTTP_HOST} ^blog\.mydomain\.com$ [NC]
    RewriteRule ^(.*) http://www.mydomain.com/$1 [L,R]
    

    In a Command Line Interface, CLI,

    You would
    cp -r ~/public_blog ~/public_html

    make sure to make back ups! And when you are all done, create the .htaccess file in ~/public_blog and delete the old files.

    You may want to look into adding a 301 Redirect so google knows you moved also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Situation: I am running my website on wordpress. I have installed the Simple Facebook
OK I have my website running Wordpress at http://www.visualise.ca/ and I installed the qTranslate
I have my main website and wordpress in different directories on my server on
I have wordpress installed on my website. On that site, under a subfolder i
I have a running website on wordpress which has been hacked, some file were
I have 2 servers. On Server 1 I have a WordPress website. On Server
I have this installed on my wordpress website; http://sharethis.com/ The plugin works great and
Hi I have a wordpress theme installed on my website, http://www.my-cv.info , the problem
I have WAMP installed in my C Drive and a Wordpress website too. I
I have a joomla Website. I have also installed a wordpress in the root

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.