try
Install WordPress in a subdirectory, such as /2012.
In your root folder (not the subdirectory folder), download and open your .htaccess file.
Add the following to your .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ blog [L]
In the above code, change the “YourDomain.com” value to your root domain.
In the above code, change the “blog” value to the subdirectory.
Save and upload the .htacess file back to your root directory.
Related Posts:
- How to completely remove Python from a Windows machine?
- [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
- Conda version pip install -r requirements.txt –target ./lib
- extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5
- Initialization Script for “Standard” Aspects of a WordPress Website?
- Populate content on install
- Automatically enable custom theme, plugins and default content on installation?
- Are there any downsides to installing WordPress on Windows versus Linux?
- Create a custom WP install with plugins, theme etc already installed?
- Install and configure WordPress while old site is still active
- How do I install two versions of WordPress on 1 server?
- How to Check the Directory Where WordPress is Installed?
- After moving wordpress some files still point to old directory
- URL to download latest version of WP for other languages than English
- Custom WordPress Installation
- Shortest possible shell script to install WordPress on Nginx server?
- Repeatable configuration package
- Can WordPress be installed at the root level, if a homepage called index.php already exists?
- Install wordpress in backend with Existing html website alive
- Moving to a new domain in the same server
- When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer?
- InfiniteWP installation fails – CONFIGURABLE MAX EXECUTION TIME DISABLED
- Multiple sites/domains on one database
- Sharing one WordPress installation between several “sites”?
- How to use if condition to change $table_prefix in wp_config.php
- Reinstall WordPress from zero
- Importing wordpress. xml file on new installation
- Can my site use two different WordPress installs for different pages?
- Can I clone WP to another directory on the same server?
- Should I delete automatically-created files before installing WordPress?
- How to work locally on a copy of my wordpress?
- When I try to install VersionPress, it tells me, “The package could not be installed. No valid plugins were found.”
- Change WordPress directory
- Missing wp-load.php on new install
- Use new domain name on previously installed files of wordpress
- No option to update WP in client’s backend
- wp-cli installation
- Page not found error shown while installing wordpress on IIS server
- Installing wordpress on Parallels plesk 9.5.3
- Multi site clarification
- How can I completely disable a WordPress installation?
- WordPress database error on (fresh) reinstall
- wp-cli fails on installing to subdomain
- Installing WordPress in a subdirectory
- how to return the wordpress path to the new site
- Version 3.04 or 3.5?
- WordPress installation from live site to localhost
- Basic installation questions
- Can I install a WordPress site locally from a tar.gz file?
- How can I deploy my InstantWP site to a live website?
- How to effectively handle the problem of installing WordPress locally for each new project?
- Local Installation: install.php offered to download instead of running
- WSOD right after install
- WordPress System Requirement for Older Versions?
- How to install WP alongside my existing site at a sub-directory (bradydjohnson.com/blog)?
- Forbidden localhost error and error establishing database
- What are the pros & cons of a new wordpress installation vs fixing one that already exists?
- I moved my WordPress site to the main directory and now I can’t access my admin
- EC2 WordPress install asks for connection info when auto-updating
- WordPress Skeleton installation
- Things to take care before installing wordpress Manual v/s Softaculous
- Moving from subdirectory and subdomain -> root
- Creating a sub folder inside a root installation?
- Why is WordPress’ installer “phoning home” during the install script?
- Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy
- Site blocked by WebSense on fresh WP Install
- WordPress 3.1 Install Error
- Disable creation of default content during installation
- Transferring from “Populate” CMS to WordPress
- Should I use two single WordPress installations because of SEO?
- How to recreate a WordPress site
- How to install multiple wordpress site on localhost
- Install wordpress without affecting clickfunnels
- More than 5 time my Website show this issue
- wp-cli setting home and siteurl to site.tldtld (double TLD)
- Accidentally re-installed wordpress
- Reporting Broken Theme event though upload was success
- Installing WordPress to root directory with existing static site. Concerns?
- How to install WordPress on root domain and Php script on subdomain?
- First time installing WordPress. Cant Access
- 2 domains 1 WP instalation in Cpanel
- What is the “Quick and Dirty” way to transfer WordPress installation?
- Upload a website on WAMP and modify it
- How to update WP-CLI on Windows via Composer?
- db.php, is it a legit file [closed]
- CPU spikes to 100% site doesn’t load, VPS crashes after moving site
- Moving site made easier
- New WP installation due to language issues
- WordPress Installation
- Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script
- Moving from one WP site to a new WP site incrementally
- Are two installations of WordPress on the same domain (no subdomains) ok?
- I can access to my wordpress page at work and via cellphone, but when I get home, I can’t access to the website
- Multiple independent wordpress installs – 1 dedicated server – individual dedicated domain for each install. What is the best way to achieve this?
- WordPress desktop app shows blank screen
- Correct folder & file permisson for WordPress
- Is php-mysql required for wordpress?
- Stuck downloading and extracting WordPress onto Ubuntu 22 LAMP server
- Backend working but not front
- Installing wordpress into the same directory as existing static html website