Here’s simplified .htaccess file:
RewriteEngine On
RewriteRule ^index$ index.php
On my local lamp server everything works fine, but there are some problems on production server. myurl/index returns only blank screen, php is not parsed. When required file is accessed directly (myurl/index.php) it works fine.
I noticed that this problem occurs only if in the required file the wordpress header is included (wp/wp-blog-header.php). After some more research I found out that blank screen is returned when wp() runs. Error reporting is enabled for wordpress and there are no entries in log files.
Does anybody have any idea why that happens?
Thank you, Josh, for useful script.
I found the solution. I don’t know why, but the content was buffered if rewritten url was used.
in the beginning of the file helped.