I am trying to copy the root WP installation to a sub directory.
(I changed the permalinks in the new copy database to the subdirectory links)
The subdirectory will be root/b2b/
When I try to reach the subdirectory I get redirected to a 404 page.
This is the .htaccess in the root
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
In the subdirectory I currently have no .htaccess since everything that I tried is not working.
I checked the other topics but none of them seems to work for me.
Replace following line
to
and
to
You can change the RewriteBase
Add this to the root of your site.
index.php:
Has the added benefit of not needing to mess with the .htaccess if you’re uncomfortable with that.