Site in subfolder – all pages work except home

Question

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]
</IfModule>

When visiting the homepage (e.g. http://subwp.com/) 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 http://subwp.com, i see the text ‘blah’ (and also all other pages display blah now :))

I’m kinda stuck. Any ideas?

0
Marcelnl1 2 months 0 Answers 8 views 0

Leave an answer