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
RewriteRule . /index.php [L]
to
RewriteRule . /b2b/index.php [L]
and
RewriteBase /
to
RewriteBase /b2b/
You can change the RewriteBase
RewriteBase b2b
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With