Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
submenu
#9
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:
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.
Reply


Messages In This Thread
submenu - by andylorenz - 2017-02-17, 05:57:07
RE: submenu - by andylorenz - 2017-02-17, 07:49:06
RE: submenu - by AleksK - 2017-02-18, 05:18:54
RE: submenu - by andylorenz - 2017-02-21, 00:09:20
RE: submenu - by Carlos - 2017-02-21, 01:36:38
RE: submenu - by andylorenz - 2017-02-21, 23:41:05
RE: submenu - by Timbow - 2017-02-22, 04:02:51
RE: submenu - by andylorenz - 2017-02-25, 00:01:46
RE: submenu - by AleksK - 2017-02-25, 01:18:35



Users browsing this thread: 1 Guest(s)