Archived

Difference between revisions of "Zeus server"

From Joomla! Documentation

m (Added notice.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Running Joomla! on the Zeus server'''.
+
{{Warning|Please note, '''Joomla is not supported on the Zeus server'''. All the provided information is unofficial, read '''[[Technical requirements|Joomla! requirements for installation]]'''<br/><center>Zeus server development has been stopped and this page is now archived.</center>}}
  
{{Notice|Please note that Joomla is not supported on this platform.}}
+
== Instructions ==
  
 +
Put the code goes into a new .txt file and save it as 'rewrite.script' and place it in the root directory of your website.
 +
 +
Change the current .htaccess file to '.htaccess_old'.... and it then turn 'on' SEO URLs in the Global Config panel and it should work
 
See [http://forum.joomla.org/viewtopic.php?f=199&t=489208 Zeus Server Issues]
 
See [http://forum.joomla.org/viewtopic.php?f=199&t=489208 Zeus Server Issues]
  
More information on the [http://www.zeus.com/ Zeus Server].  
+
<pre>
 +
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
 +
    endif
 +
    RULE_0_END:
 +
 
 +
    RULE_1_START:
 +
    # prepare to search for file, rewrite if its not found
 +
    set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
 +
    set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}
 +
 
 +
    # check to see if the file requested is an actual file or
 +
    # a directory with possibly an index.  don’t rewrite if so
 +
    look for file at %{SCRATCH:REQUEST_FILENAME}
 +
    if not exists then
 +
    look for dir at %{SCRATCH:REQUEST_FILENAME}
 +
    if not exists then
 +
    set URL = /index.php?q=%{SCRATCH:REQUEST_URI}
 +
    goto QSA_RULE_START
 +
    endif
 +
    endif
 +
 
 +
    # if we made it here then its a file or dir and no rewrite
 +
    goto END
 +
    RULE_1_END:
 +
 
 +
    QSA_RULE_START:
 +
    # append the query string if there was one originally
 +
    # the same as [QSA,L] for apache
 +
    match SCRATCH:ORIG_URL into % with \?(.*)$
 +
    if matched then
 +
    set URL = %{URL}&%{SCRATCH:QUERY_STRING}
 +
    endif
 +
    goto END
 +
    QSA_RULE_END:</pre>
  
 +
code by [http://forum.joomla.org/memberlist.php?mode=viewprofile&u=371244 biablasta]
  
 +
More information on the [http://support.zeus.com/ Zeus Server].
  
[[Category:Tips and tricks]]
+
[[Category:Archived pages]]
[[Category:Servers]]
 

Latest revision as of 10:43, 4 August 2013

This page has been archived. This page contains information for an unsupported Joomla! version or is no longer relevant. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Stop hand nuvola.svg.png
Warning!

Please note, Joomla is not supported on the Zeus server. All the provided information is unofficial, read Joomla! requirements for installation

Zeus server development has been stopped and this page is now archived.


Instructions[edit]

Put the code goes into a new .txt file and save it as 'rewrite.script' and place it in the root directory of your website.

Change the current .htaccess file to '.htaccess_old'.... and it then turn 'on' SEO URLs in the Global Config panel and it should work See Zeus Server Issues

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
    endif
    RULE_0_END:

    RULE_1_START:
    # prepare to search for file, rewrite if its not found
    set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
    set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}

    # check to see if the file requested is an actual file or
    # a directory with possibly an index.  don’t rewrite if so
    look for file at %{SCRATCH:REQUEST_FILENAME}
    if not exists then
    look for dir at %{SCRATCH:REQUEST_FILENAME}
    if not exists then
    set URL = /index.php?q=%{SCRATCH:REQUEST_URI}
    goto QSA_RULE_START
    endif
    endif

    # if we made it here then its a file or dir and no rewrite
    goto END
    RULE_1_END:

    QSA_RULE_START:
    # append the query string if there was one originally
    # the same as [QSA,L] for apache
    match SCRATCH:ORIG_URL into % with \?(.*)$
    if matched then
    set URL = %{URL}&%{SCRATCH:QUERY_STRING}
    endif
    goto END
    QSA_RULE_END:

code by biablasta

More information on the Zeus Server.