2017-02-25, 01:18:35
andylorenz, pay attention
if you work with GetSimple on the local server and the path to the site is not straight (for example, site-name.com/demo1)
when transferring to the server will need to edit the file in the folder with .htaccess GetSimple
look at the bottom of the file:
important point RewriteBase
it is necessary to edit the file .htaccess when you move GS to another folder or Fancy URLs without this will stop working
few examples
if site on the local server site-name.com/demo/version1 then RewriteBase /demo/version1/
moved the site to a server in the root folder site-name.com then edit the file .htaccess RewriteBase /
if you work with GetSimple on the local server and the path to the site is not straight (for example, site-name.com/demo1)
when transferring to the server will need to edit the file in the folder with .htaccess GetSimple
look at the bottom of the file:
Code:
# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
RewriteEngine on
# Usually RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /demo1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
important point RewriteBase
it is necessary to edit the file .htaccess when you move GS to another folder or Fancy URLs without this will stop working
few examples
if site on the local server site-name.com/demo/version1 then RewriteBase /demo/version1/
moved the site to a server in the root folder site-name.com then edit the file .htaccess RewriteBase /
I use machine translation. Forgive me my errors.