O olsnoob New Member Jul 25, 2018 #1 Jul 25, 2018 #1 Hi, Access to the root folder does not redirect to index.php. How do I rewrite such that it redirects to index.php? I've tried adding this to vhost/rewrite: Code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php [L] Thanks in advance!
Hi, Access to the root folder does not redirect to index.php. How do I rewrite such that it redirects to index.php? I've tried adding this to vhost/rewrite: Code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php [L] Thanks in advance!
P Pong Administrator Jul 25, 2018 #2 Jul 25, 2018 #2 Are these rules from Apache .htaccess? You should create "/" context and place rewirte rule there, not vhost/rewrite. Please check this KB for details. https://openlitespeed.org/kb/migrate-apache-rewrite-rules-to-openlitespeed/
Are these rules from Apache .htaccess? You should create "/" context and place rewirte rule there, not vhost/rewrite. Please check this KB for details. https://openlitespeed.org/kb/migrate-apache-rewrite-rules-to-openlitespeed/