Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
500 when trying to save settings
#3
(2017-09-26, 16:57:49)Alexander_ Wrote: can you post the .htaccess-file?
Sure:



Code:
#
# 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 /example.com/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
Reply


Messages In This Thread
500 when trying to save settings - by choccyness - 2017-09-26, 07:28:23
RE: 500 when trying to save settings - by choccyness - 2017-09-27, 06:36:58
RE: 500 when trying to save settings - by Bigin - 2017-09-30, 02:33:00
RE: 500 when trying to save settings - by shawn_a - 2017-09-27, 22:41:48
RE: 500 when trying to save settings - by shawn_a - 2017-09-29, 10:43:51
RE: 500 when trying to save settings - by shawn_a - 2017-09-30, 23:58:59
RE: 500 when trying to save settings - by shawn_a - 2017-10-01, 08:04:18
RE: 500 when trying to save settings - by Bigin - 2017-10-02, 04:05:10
RE: 500 when trying to save settings - by shawn_a - 2017-10-02, 04:51:25
RE: 500 when trying to save settings - by Bigin - 2017-10-04, 17:33:24
RE: 500 when trying to save settings - by shawn_a - 2017-10-07, 23:13:03
RE: 500 when trying to save settings - by shawn_a - 2018-01-04, 00:38:20
RE: 500 when trying to save settings - by pinguin - 2018-05-15, 23:08:07
RE: 500 when trying to save settings - by Carlos - 2018-05-16, 05:00:25
RE: 500 when trying to save settings - by pinguin - 2018-05-16, 08:32:12
RE: 500 when trying to save settings - by shawn_a - 2018-05-16, 12:59:14
RE: 500 when trying to save settings - by pinguin - 2018-05-16, 21:02:05
RE: 500 when trying to save settings - by Carlos - 2018-05-16, 23:10:23



Users browsing this thread: 1 Guest(s)