WordPress Zeus Permalinks,WordPress Not Working On Zeus Server

Hi Friends, I was working on a WordPress project of a client and I successfully finished my project on local, So its time to upload all files on demo server and show it to client, So I asked ftp details and upload all files on server and database too. As you know to start WordPress we need to change 2 fields from wp_options table in db and I did that and when I checked site was not working, I opened admin and it was working but site was not working, After checking server details I found that it was not Apache server it was Zeus server which is totally different server and not support mod_rewrite and .htaccess like Apache, So now I stuck! When you work as WordPress Freelancer you always get lots of issues which you never get before and this issue was really new one because I didn’t work with Zeus server before.

So I started to search about Zeus server and found that like Apache, in Zeus server we need to create a file called ‘rewrite.script’ and then write new rewrite rules having different syntax then Apache. So I read about some rewrite rules and also find some help from other sites too and finally I got rewrite rules code for WordPress for Zeus server, So open rewrite.script file and then put below code in file :

#Zeus server WordPress mod_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
##### FIX FOR LOGIN/FORGOTTEN PASSWORD/ADMIN ETC #####
match URL into $ with ^/wp-.*$
if matched then goto END
##### FIX TO ALLOW SEARCH TO WORK #####
match URL into $ with ^/(.*)
set URL = /index.php/$1

If you have installed WordPress in different folder like ‘temp’ then rewrite rules will be like :

#Zeus WordPress mod_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
##### FIX FOR LOGIN/FORGOTTEN PASSWORD/ADMIN ETC #####
match URL into $ with ^/temp/wp-.*$
if matched then goto END
##### FIX TO ALLOW SEARCH TO WORK #####
match URL into $ with ^/temp/(.*)
set URL = /temp/index.php/$1

So these are rewrite rules which you should use for your WordPress site to work with Zeus server. I hope it will help someone, Let me know if you have any comments or suggestions.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *