Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing on a Zeus Web Server
#1
If your installing on a host which uses Zeus Webserver instead of Apache you will not be able to use FancyURLs when using GS out of the box.

To enable Fancy URLs copy the following to a file called 'rewrite.script' on the DOCROOT of your server and enable Fancy URLs in the Settings Tab

Note: At the moment it does not work if you have installed GS in subdirectory

Code:
#Zeus webserver version of basic GetSimple CMS rewrite rules
map path into SCRATCH:path from %{URL}
look for file at %{SCRATCH:path}
if exists then goto END
look for dir at %{SCRATCH:path}
if exists then goto END

#Ignore for Admin
#Change below if you Admin in a different Directory
match URL into $ with ^/admin.*$
if matched then goto END

#Ignore for Plugins
#This is required if your using i8ln Galeery plugin
match URL into $ with ^/plugins.*$
if matched then goto END

# see if its a page with a querystring

RULE_0_START:
# get the document root
map path into SCRATCH:DOCROOT from /
# initialize our variables
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}

# see if theres any queries in our URL
match URL into $ with ^(.*)\?(.*)$
if matched then
  set SCRATCH:REQUEST_URI = $1
  set SCRATCH:QUERY_STRING = $2
    set URL = /index.php?id=$1&$2
    goto END
endif
RULE_0_END:

# otherwise serve the page

match URL into $ with /?([A-Za-z0-9-]+)/?$
set URL = /index.php?id=$1
My Github Repos: Github
Website: DigiMute
Reply
#2
can you add this to the installation - infos in the WIKI?

That would be very helpful

have a good evening,

Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Hi, Connie, already up there...

M
My Github Repos: Github
Website: DigiMute
Reply
#4
thanks!

I just added (Zeus Webserver) to the link so it's easier to find ;=)

I am glad the WIKI is growing
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
New improved Zeus rewrite script has been updated in the original post and on the wiki.
My Github Repos: Github
Website: DigiMute
Reply




Users browsing this thread: 1 Guest(s)