I am currently using hosting with a lightpeed server. Hosting says that mod_rewrite enabled, but I cannot get my script to work there. Whenever I try to access the url, it returns 404 - not found page.
I put the same codes on another server that works with Apache. He works there. So I think this is the .htaccess and mod_rewrite problem.
But hosting support still insists that their mod_rewrite is turned on, so I would like to know how I can check if it is really turned on or not.
I tried to check using phpinfo() but no luck, I can not find mod_rewrite there because they use lightspeed ?
Is there any way to check? Please help me. Thank.
FYI: my .htaccess code
Options -Indexes <IfModule mod_rewrite.c> DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] </IfModule>
I tried it too
DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
But the same result.
php url-rewriting .htaccess mod-rewrite lightspeed
knightrider Sep 07 2018-11-17T00: 00Z
source share