"If you can get along with everyone and everyone loves you, then you don't stand for much. A person who stands his ground for his principles and won't compromise his integrity is not loved by everyone."
- Larry Winget
Today, I had to install WordPress on one of my client’s web host, which happens to be a Zeus web server. I have never used a Zeus Web Server in my life and I had no idea it does not support the same URL rewriting syntax like Apache’s mod_rewrite.
What that means is the .htaccess file of WordPress is invalid on a Zeus web server. I uploaded the .htaccess file to the root folder of the web host and it disappears after I refresh the root folder. I read this blog post on how to activate WordPress permalinks on a Zeus web server and solved the problem.
I did not do it by create a rewrite.scipt file in the root folder. Instead, I entered the following code from the blog post I mentioned above into the control panel of the Zeus web server.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 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: |
Here’s what it looks like:

If you ask me, unless you have a very good reason to use a Zeus web server, get an Apache web server instead to avoid this little annoyance.
Tagged As: .htaccess, Apache HTTP Server, Rewrite engine, Web hosting service, WordPress, Zeus Web Server
Post a Comment