This can be done. What you want in your .htaccess is something like
if directory do not exist in root
change root to the wordpress directory
unfortunately I am not familiar with a way to do such a thing with .htaccess
The other option is to map each possible url directory to the wordress directory, but since url directories in wordpress are created dynamically when you add category, page, new post date and more, it will become hard to maintain the .htaccess. Maybe you will have better luck with special treatment to the current site URLs.
And this all assumes that you will not have conflicts in URLs between the old site and the wordress site.
Related Posts:
- Redirect main domain to subdirectory
- How to properly give WordPress its own directory
- File and directory permissions
- Place static HTML files in path below WordPress page
- Site redirects to wrong url when saving settings
- .htaccess for wordpress inside another wordpress install
- Isolating WordPress to a subfolder
- Permalinks not working on second wordpress installed in a subdirect
- Move wordpress to folder without changing urls
- Change wp-content without changing the name of the folder
- How to restrict access to wp-content, wp-includes and all sub-folders
- Exclude subfolder from WP-redirect works with html but not php files
- Can’t Access Subdirectory
- Fixing custom 404 pages broken by WordPress in a subdirectory
- WP install in sub-dir white screen
- Drawbacks to using Options -Indexes
- WordPress installed in root, need second in subdirectory with different domain
- htaccess, site and staging in subdirectories
- External content won’t load in iframe in Safari
- Disable directory browsing of uploads folder
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- How to redirect the frontend of a WordPress site (only)?
- Access sub-domain when root public_html is protected with .htaccess password
- Cannot access subdirectory subpages
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- Install second wordpress in root subfolder, Error 404
- Remove subdirectory from links
- WordPress URL not working?
- htaccess- to hide subdirectory slug only from the post
- How to direct users to a subcatalog
- Installing wordpress on subdirectory 2 levels down
- Cannot Override WordPress 404 for a Sub-Directory
- htaccess mod_rewrite not working
- .htaccess and virtual host configuration for WP in its own directory
- Default .htaccess file for WordPress?
- Does this .htaccess security setting really work?
- htaccess problem after saving Settings
- Non-WordPress page in subdirectory under WordPress page
- htaccess https redirect from www to non-www
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- Why does the header set X-Robots-Tag apply to all pages?
- Suppress subdirectory from WordPress Multisite primary URL
- .htaccess Rewrite URL WordPress
- A plugin changes my .htaccess file and I can’t access httpd.conf as that’s a shared server
- What is the role of .htaccess file in WordPress?
- Remove File Extension for Page Outside of WordPress
- Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file
- different child theme for subdomain
- How do I edit the htaccess file to optimize my website?
- Block only external access to wp-cron.php on OpenLiteSpeed
- Site searches by Python for non-existent assets
- Allow logged in users who doesn’t belong to whitelisted ips
- WordPress On subfolder
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- How to ignore folder in site root while accessing a URL
- How do I test to ensure that my wp-config file is protected?
- How can I enable keep alive (Not accessing to Apache)
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- .htaccess Security Header Rules
- htaccess has broken my site
- TimThumb & htaccess : clean url
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- Weird behavior of Dashboard, must be core files
- Remove trailing slash after .html extension
- ReDirect subfolder link to another sub-folder and force SSL
- Need help rebuilding lost htaccess file
- How to rename index.php to home.php
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- Hide a subdirectory on my website hosting
- Can’t access WP site over WiFi network
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htpasswd asking for authentication on home page
- WordPress login fail after .htaccess domain redirect
- Redirect to new domain with .htaccess [closed]
- I am new in word pres my font awesome is not allow
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- Can’t access htaccess [closed]
- .htaccess redirect not properly working [ ?utm_source=]
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- Should I prevent access to .htaccess and wp-config.php files?
- WordPress not linking correctly with .htaccess redirect to subdirectory
- Downloading zip or tar.gz inside WordPress installation?
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- How to move wordpress website from hosting account to localhost
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- Unable to find ‘full-path’ to my 404.php file
- Use htaccess to redirect wordpress non-existent page to homepage
- WordPress RSS feed to external XML
- Does htaccess password keep search engines out?
- Multisite, different domains, optional subdirectory, and htaccess
- Need to edit htaccess while moving on WordPress
- How can I create a private site that is inaccessible from the outside?
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- htaccess – Server Subdirectory With Different Name Than URL Subdirectory
- How can I stop WordPress from catching URL’s for static pages that I save on my server