Home without index.php
Posted: Mon Apr 15, 2024 7:14 pm
I just started with CMSMS. How can I remove index.php from the home URL? This is my root:
https://localhost/cmsms/
I followed the instructions on this page to get it done but without result:
https://docs.cmsmadesimple.org/configuration/pretty-url
The only thing I did else so far after installation is setting up SSL. So this is my config.php:
And this my .htaccess:
When I enter this URL I get a blank page. When I enter https://localhost/cmsms/index.php this page show up:

I assume this is the home page? What do I need to do more to get it done?
https://localhost/cmsms/
I followed the instructions on this page to get it done but without result:
https://docs.cmsmadesimple.org/configuration/pretty-url
The only thing I did else so far after installation is setting up SSL. So this is my config.php:
Code: Select all
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = 'pass';
$config['db_name'] = 'cmsms';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Amsterdam';
$config['root_url'] = 'https://localhost/cmsms';
$config['admin_url'] = 'https://localhost/cmsms/admin';
$config['url_rewriting'] = 'mod_rewrite';
Code: Select all
<IfModule rewrite_module>
RewriteEngine on
# CMSMS installation is in subdirectory
RewriteBase /cmsms
# force https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# remove 'www' from REQUEST_URI
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
# Rewrites URLs in the form of /parent/child/grandchild but only rewrites if the requested URL is not a file or directory.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>

I assume this is the home page? What do I need to do more to get it done?