• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Cannot use index.php in mod_rewite

Kroptokin

Regular Pleskian
I've just migrated a domain to a new server. From CentOS 6.5 to Centos 7.2

Mostly it has gone pretty well. But in one domain I am unable to use index.php in mod_rewrite.

This is the .htaccess file:

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

With this configuration I get the default 'Welcome to Plesk' page. I also see Got error 'Primary script unknown' in the error logs, which may or may not be related.

If I change index.php to (say) home.php everything works as expected.

So. There is some specific configuration issue with index.php.

I tried switching from running PHP as FPM to FastCGI as some threads seem to suggest that as a possible solution but that didn't help.

Does anyone have any ideas?
 
RESOLVED.

Stupid error. index.html was present in the directory. It looks like there must be a DirectoryIndex directive somewhere to serve index.html if it exists.
 
Back
Top