Apache mod_rewrite to Zeus

Hi



The hosting company I use only do not have Apache mod_rewrie but they do have Zeus. After looking around I can see that many people are struggling to use Zeus instead of Apache. Well, I have found some script that does work on Zeus and that does change the URL just like Apache however, when I drop the rewrite.script in and enable the SEO addon I can not actually see any of the content on any of my pages!!



Does anyone know what might be wrong with my rewrite.script code? The code is as follows:



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

check it’s not webmail or controlpanel or tech_support

match SCRATCH:ORIG_URL into % with ^/webmail|^/tech_support|^/controlpanel

if matched then

goto END

else

set URL = /index.php?q=%{SCRATCH:REQUEST_URI}

goto QSA_RULE_START

endif

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:

Hi there



I have the same issue to resolve… did you get anywhere with this?

Example of how re-write works:



The patient says, “Doctor, it hurts when I do this.” “Then don’t do that!”



This can be re-written as:



The client says, “Developer, it does not work when I use Zeus for this.” “Then don’t use Zeus!”



I don’t think there are specific rules to go from one to another…

er, thanks. Not sure if that is overly helpful but it made me smile.

Have you, guys, tried forums for Zeus server? At least there exist people who seen that animal of a server.



PS: Keep in mind, this is a British product, anything from there does not make sense, take their weird inverse driving lanes. Do you know how many tourists get injured each year because they looked “correctly” to the left before crossing the street?

Well, like the OP I can find scripts but they just don’t work… we can’t all choose the server we need unfortunately so working around the Zeus problem is necessary…

Try to go to the sites where you can hire a person for a project. Maybe you can score a Zeus IT person.

[quote name=‘phillthump’]Well, like the OP I can find scripts but they just don’t work… we can’t all choose the server we need unfortunately so working around the Zeus problem is necessary…[/QUOTE]



Why can’t you choose the server you need?

[quote name=‘Tool Outfitters’]Why can’t you choose the server you need?[/QUOTE]



Because my client has organised the hosting on zeus servers with Names…



Would it be simple to move the site to an apache based server?

[quote name=‘phillthump’]Because my client has organised the hosting on zeus servers with Names…



Would it be simple to move the site to an apache based server?[/QUOTE]



Depends on who is doing the moving. If you know what you’re doing it’s simple. :wink: