2020-08-25, 13:54:09
(This post was last modified: 2020-08-25, 14:16:42 by judgedredd.)
I realized that I hadn't installed the .htaccess filke in the correct location or renamed it. This has now been done but the problem still persits. I beautified the .htaccess code and this is what is in it:
The lines at the top are what my host put there so I have not touched it (I just added those lines into this file and made this file the active one).
------------
Ok. I was able to get the installation complete by commenting out this line:
the php installation already has that enabled.
Now, the problem I am having is that the page within the admin folder come up empty. so I will have to go through the .htaccess file another line at a time.
Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php72” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-alt-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
#
# GetSimple CMS htaccess ROOT file
# apache 2.4
#
# The following require certain allow overrides, if getting 500 error comment them out one by one
# can be resolved in apache httpd.conf to ensure security alternatives
# override charset
AddDefaultCharset UTF-8
#prevent directory listings
Options -Indexes
# Follow symbolink links, This is required for rewrites on some hosts
Options +FollowSymLinks
# Set the default handler.
DirectoryIndex index.php
# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
<IfModule mod_access_compat.c>
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
</IfModule>
</Files>
<Files sitemap.xml>
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
<IfModule mod_access_compat.c>
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</IfModule>
</Files>
# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
RewriteEngine on
# Usually RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /public_html/SimpleCMS
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
The lines at the top are what my host put there so I have not touched it (I just added those lines into this file and made this file the active one).
------------
Ok. I was able to get the installation complete by commenting out this line:
Code:
AddDefaultCharset UTF-8
the php installation already has that enabled.
Now, the problem I am having is that the page within the admin folder come up empty. so I will have to go through the .htaccess file another line at a time.