Site in subfolder – all pages work except home


Our wordpress site is in a subfolder /subwp/, and all pages except the home page work. This is the root folder:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subwp/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subwp/index.php [L]

When visiting the homepage (e.g. I get the hosting providers default site (‘this domain is hosted by xyz’). All other slugged pages work perfectly.

Just to make sure that the hosting provider is not somehow auto redirecting requests to /, i created a file named index.php with just ‘blah’ in it, to see if it would work then, and then if i visit, i see the text ‘blah’ (and also all other pages display blah now :))

I’m kinda stuck. Any ideas?

Marcelnl1 8 months 2020-12-01T10:10:26-05:00 0 Answers 8 views 0

Leave an answer