File: //etc/httpd/sites-available/kosmiceventsja.com.conf
<VirtualHost *:80>
ServerName www.kosmiceventsja.com
ServerAlias kosmiceventsja.com
DocumentRoot /var/www/kosmicevents/public
<Directory "/var/www/kosmicevents/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
RewriteEngine On
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
</VirtualHost>