getsimple cms: blog plugin bug with mod_rewrite

Problem: If you use the „blog“ plugin and move the blog roll to a other site or subfolder you have to recreate the „.htaccess“ file.

You find the „.htaccess“ generator tool link inside blog plugin settings! recreate the „.htaccess“ and put it into the root dir of your webspace

.htaccess dump of a correct file if getsimple is installed to ./

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!

    Order allow,deny
    Deny from all
    Satisfy All

    Order allow,deny
    Allow from all
    Satisfy All

RewriteEngine on

# Usually RewriteBase is just '/', but
# replace it with your subdirectory path-> if your site is located 
#in subfolder you need to change this to reflect (eg: /subfolder/)
RewriteBase /

RewriteRule ^post/([^/.]+)/?$ index.php?id=index&post=$1 [L]
RewriteRule ^tag/([^/.]+)/?$ index.php?id=index&tag=$1 [L]
RewriteRule ^page/([^/.]+)/?$ index.php?id=index&page=$1 [L]
RewriteRule ^archive/([^/.]+)/?$ index.php?id=index&archive=$1 [L]
RewriteRule ^category/([^/.]+)/?$ index.php?id=index&category=$1 [L]

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

Impressum Datenschutz-DSGVO-GDPR

Last Update 08.10.2023 - Nonprofit Linux PC & Server Support since 2004 Tags: Linux Online Help, Linuxonlinehelp, Linux Support, Linux Hilfe