2014-06-15, 01:56:34
(2014-06-15, 00:18:30)johnstray2001 Wrote: You will need to modify your root .htaccess file. There is a known bug in the current version that stops this info from showing in the admin area.Thank you for your rerply, but my root .htaccess looks right now like this:
You will need to add the following lines to .htaccess (where 'blog' is the slug to the page you choose in settings (change all if required)):
...
Your final .htaccess file should look something like this:
...
If you are hosting on a Microsoft IIS based server, you will need to modify your web.config file to add the following rule (Needs to be first in the list):
...
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 /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
RewriteRule ^works/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^works/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^works/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^works/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]
RewriteRule ^works/category/([^/.]+)/?$ index.php?id=blog&category=$1 [L]
*And I do not know if provider has offered me a Microsoft IIS based server or something else.*
Beforehand thank you for your help.