Subdirectory WordPress Installation Guide Print

  • #WordPress #SubdirectoryInstallation #cPanel #WebsiteSetup #SEO
  • 0

Installing WordPress in a subdirectory is a great way to run multiple websites under the same domain without affecting the main site. This guide will walk you through the step-by-step process of installing WordPress in a subdirectory while ensuring proper functionality and SEO optimization.

Step 1: Create a Subdirectory in cPanel

  1. Log in to cPanel by visiting yourdomain.com/cpanel.
  2. Navigate to File Manager and open the public_html directory.
  3. Click +Folder and create a new folder (e.g., blog).
  4. Your subdirectory’s path will be public_html/blog/ (accessible at yourdomain.com/blog).

Step 2: Download and Upload WordPress

  1. Visit WordPress.org and download the latest version.
  2. In cPanel, go to File Manager, open the subdirectory (/blog/), and upload the WordPress ZIP file.
  3. Right-click the ZIP file and select Extract.

Step 3: Create a Database for WordPress

  1. In cPanel, go to MySQL® Databases.
  2. Click Create New Database and enter a name (e.g., wp_blog).
  3. Scroll down to MySQL Users, create a user, and assign it to the database with All Privileges.

Step 4: Configure the WordPress Installation

  1. Visit yourdomain.com/blog to start the installation.
  2. Select your language and click Continue.
  3. Enter your database details (name, username, password).
  4. Click SubmitRun the installation.
  5. Provide your Site Title, Username, Password, and Admin Email, then click Install WordPress.

Step 5: Adjust Permalink & Settings

  1. Log in to WordPress Admin (yourdomain.com/blog/wp-admin).
  2. Go to Settings → Permalinks and select an SEO-friendly structure (e.g., Post Name).
  3. Check General Settings to ensure the Site URL is set correctly to yourdomain.com/blog.

Was this answer helpful?
Back