
Register 365 Zeus Server Setup for WordPress Permalinks
I ran into an issue today, while optimising a WordPress site hosted on Register 365 Servers, which initially looked to be Apache, but on closer inspection was Zeus. Not to worry I thought, WordPress will sort all this out, it’s an Apache type web server, I am sure the .htaccess will work. Well it did not and after a long time searching and looking around I found this work around.
No .htaccess instead rewrite.script, the code for the rewite.script is below and you can also download a zipped copy of the file here;
>> Download Zeus Server Rewrite Script
Code for rewrite.script
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:Setting up Pretty Links in WordPress
Upload your new rewite.script to the root of your directory, the root is the top level folder, in the case of this Register 365 Zeus setup it was a folder called web. Login to wordpress, navigate to Settings > Permalinks, check out the image below for configuration setup.
If you are having this issue or any other problems with your WordPress sites, drop me a line or use the form at the bottom of the site to submit your site or leave a comment.

49 Comments
Barry
July 11, 2011 at 12:39 pmDo you know if this works with other servers like Windows servers or is this a Zeus specific fix?
Niall Flynn
July 12, 2011 at 10:31 amI have had similar problems with IIS, this is a Zeus specific fix, personally when I get this sort of messing going on I switch host. That was my advice to the client this time as the lack of mod rewrite was only the tip of the ice berg.
What site are you trying this on?
Terry Kendrick
August 25, 2011 at 8:59 pmHi – Thanks for this script works on the main site but then mess up the admin access to the website? Any ideas
Regards Terry
Niall Flynn
August 25, 2011 at 9:36 pmNot sure about the admin, feel free to email me hello@niallflynn.ie I normally recommend ppl to switch host in cases like this, google spiral hosting they are by far the best Irish host.
Gareth
October 28, 2011 at 4:46 pmHi, Using WP 3.2.1 and can’t use pretty links: /%category%/%postname%/, even with the script. Any ideas? Getting the 404 not found error.
Niall Flynn
October 28, 2011 at 4:58 pmI would need to see the exact ftp and wp setup, as I said before I would just switch host, these sorts of errors are usually just the tip of the iceberg
drop me a mail at hello@niallflynn.ie I will do what I can to help.
Gareth
October 28, 2011 at 5:08 pmIt’s fine I fixed it. Had the site in a sub-directory so had to change the path in the script.
Niall Flynn
October 28, 2011 at 5:09 pmGlad it helped
Chris
March 9, 2012 at 1:43 amThank you so much I was going in circles trying to make .htaccess work. Thanks for sharing the knowledge.
Niall Flynn
March 14, 2012 at 10:53 amGlad to help, move host it’s the best option
Caroline
March 14, 2012 at 8:52 amThank you for this! Worked like a charm!!!!
Niall Flynn
March 14, 2012 at 10:51 amGlad to help, to be honest this is just one of many problems you will have with these guys, check out Spiral Hosting, will save you loads of bother
Maria Robertson
June 15, 2012 at 10:08 amI wished I had found this post days ago. I downloaded your script uploaded it to the root /web/ of my names.co.uk server and it worked. I am so grateful for this post, thank you for posting. I am so relieved, was considering moving my host and everything …
Niall Flynn
June 15, 2012 at 10:53 amYou should 100% change from Register 365, this is the tip of the iceberg and this fix is really a hack and not a total fix. I have had countless people see this page and use my fix. I would highly recommend http://www.spiralhosting.com/uk/hosting/shared for UK and Irish Hosting. cPanel setup, nice fast servers and oh yeah they help when things break
Not to be critical of Irish webhosting, but I have done the rounds and Spiral are the only company that give real support. Again I got no fees/reseller/affiliate from Spiral I do not work for them I just try to praise good service where I find it and these guys are the best.
Shane
July 2, 2012 at 6:41 pmHi, I came across this fix. It is excellent. Thanks a million. The rewrite script that Reg365 give out themselves is actually a bit useless. It breaks the Search Widget capability of the site but with your one it works perfectly.
I am with Reg365 currently but would love to know what I can expect in the future? Would you really advise leaving them? This little script doesn’t seem like a whole lot of work to upload to server and solve the problem. What other major problems have you encountered?
Niall Flynn
July 2, 2012 at 6:45 pmRegister 365 are no good for WordPress, this is the tip of the iceberg. Switch is my advice. Spiral always look after me and my clients, no complaints so far, check out http://www.spiralhosting.ie/
Shane
July 2, 2012 at 7:34 pmThanks for prompt reply. I know the Zeus server thing is annoying but could you explain what else they fail on regarding wordpress?
Niall Flynn
July 2, 2012 at 7:37 pmI have had issues with;
- Plugin installs
- Server Speed
- PHP based image resizers
- Smush it integration
That’s all I can think of right now, plus no cpanel
Shane
July 2, 2012 at 7:46 pmFair enough. I haven’t really been with them for long enough to notice all this. I’ll keep it in mind and consider spiral for next project.
Cheers for help.
Niall Flynn
July 6, 2012 at 3:38 pmGlad to have helped
Confused
August 18, 2012 at 6:29 pmHi there;
This is going to sound like a dumb question as Register 365 have been no help – but in the script you provide below do I just have to enter my URL where you have stated URL above? Is that all the editing I have to do?
Thanks
S
Confused
August 18, 2012 at 6:35 pmIt’s ok man – I sorted it out – your fix is perfect. Many thanks. Looks like I will have to start transferring my site.
Niall Flynn
August 19, 2012 at 2:41 pmI would switch host asap. This is as I have said the tip of the iceberg and as you pointed out Register 365 are not very helpful. Check out Spiral the guys are great to deal with.
I also spotted that if you use the promo code twitter you get 10% off
Si
August 24, 2012 at 11:10 amHi Niall,
Thank you so much for this I’ve been hours trying to figure this out on Reg 365, you’ve saved me an enormous amount of time. Just a question from a fairly novice wordpresser, my permalinks are including /wp/ after site name still. Do I need to move entire wordpress site into “web” for this to go? Will this screw my site up??
Thanks!
Si
August 24, 2012 at 11:17 amOh never mind sorted it but thanks so much again! I’ll deffo be using that Spiral bunch after all of this!!
Niall Flynn
August 24, 2012 at 11:21 amGlad to pass it on you can change that in the general settings
Olie
August 30, 2012 at 2:36 pmThanks so much for this rewrite. It worked on both my sites, when all other efforts failed. I use names.co.uk and they use Zeus servers
Thanks Again
Olie
Niall Flynn
August 31, 2012 at 12:30 pmThanks Olie, I did not realise this was a Zeus server specific issue, might rewrite the post to cover this, give this some love and a share using my new social share widget to the right
Darragh Verschoyle
August 31, 2012 at 12:35 pmNice one mate. This might just resolve an issue I was having myself. Why can’t clients just listen when you say “don’t use Register 365″?
Niall Flynn
August 31, 2012 at 12:40 pmI know they are pretty poor on all fronts, can’t say I have worked with them or Blacknight in any capacity other than to transfer away. I think the length of this string shows the pain trying to get WordPress install on Zeus
kenneth Topham
September 26, 2012 at 11:16 amHi Niall you seem pretty hot on WordPress I’m a photographer and wish to use this, so do I need hosting or can I leave it on WordPress and use a template?
Niall Flynn
September 26, 2012 at 11:48 amI would advise getting you own hosting, rather than using WordPress.com. Check out http://www.spiralhosting.co.uk and drop me a line if you want to get a new site up and running.
kenneth Topham
September 26, 2012 at 12:01 pmyeah I looked at that yesterday after reading your thread, I’m not sure where to start… I need a push in the right direction and I’ll be ok but atm I’m struggling with all the jargon and connecting the dots of wordpress, templates, and hosting any advice would be hugely appreciated!
susie
October 29, 2012 at 2:23 pmHi
I was wondering if you could help i was working away with a WP template i downloaded and then i saw 404 error and now i am well and truly stuck i cant log into my WordPress admin and the site looks terrible (very incomplete).
I host with Register 365 and did a one click instal so i didn’t upload it via filezilla or anything.
Help?!
Thanks
Susie
Niall Flynn
October 29, 2012 at 2:26 pmHi Susie, I just sent you an email, this should be an easy fix
David Horn
November 12, 2012 at 12:04 pmI was preparing for a long trip round google when I encountered this problem … thanks to your life saving tip, I’m back up and running in less than 10 minutes. Thank you so much!
Niall Flynn
November 12, 2012 at 12:12 pmGlad to have helped, you are going to have ‘fun’ on Zeus, my advice is to switch hosting less hassle all round.
Gareth Loughran
December 22, 2012 at 7:04 pmThanks Niall, recently developed a photography clubs website and had to upgrade their hosting from legacy h-shere to register365′s new control panel and this took a bit of time to find my way around the new layout and then found out it was zeus as well. arghh. Your script worked 1st time so thanks. r365 does seem to be a bit of hassle. How is spiral hosting for multisite do you know?
Niall Flynn
January 13, 2013 at 10:41 pmNo problem, glad to help. Looks like you might be having a few issues with the site, drop me a line if you need any WordPress or SEO advice.
For multisite I have not used spiral, but I would imagine all is fine and they help a lot with WordPress and any other issue, I would check them out, let them know I sent you
Ronan
January 16, 2013 at 10:55 pmThis was great help. It was driving me mad but now works perfectly thanks to your file
Thanks so much for the help and more importantly the headache relief!
Ronan
Niall Flynn
January 16, 2013 at 11:13 pmAny time, first of many on a Zeus server but if it helps, glad to pass it on.
Ed Leamy
January 21, 2013 at 12:26 amThanks a million Niall, really helpful and worked first time.
Niall Flynn
January 21, 2013 at 12:30 amGlad it helped and you aren’t commenting at 5am still trying to get this sorted. As I always say with this Zeus setup you have more problems to come, it ain’t WordPress friendly.
simon mcdermott
February 20, 2013 at 4:27 pmHi Niall, Wasted over half day trying to get this sorted before coming upon your site. ThankS!!
Sorted in ten min with your file and simple instructions.
s
Niall Flynn
February 20, 2013 at 4:29 pmDon’t waste anymore time, I would get yourself a decent host reg 365 are useless for WordPress and imo all things that aren’t static html sites. Zeus will cause you hassle for a long time to come.
Humayun
February 26, 2013 at 3:55 pmHi
Thnk you for help. Kindly if you can help me where to make change if I’ave WP Blog in Sub directory?
Thnk you
humayun
Aoife
March 20, 2013 at 9:32 amThis is exactly what I needed. Thanks so much for your help!
Niall Flynn
March 21, 2013 at 1:08 am@Humyun a sub directory, that is tough, I will look into it but thankfully I have no more of these mad Register 365 Servers to test on.
@Aoife no problem glad to help
Niall Flynn
March 21, 2013 at 1:12 amJust looking now for the sub dir fix it is actually easy enough;
map path into SCRATCH:DOCROOT from /subdir/Not tested, so if it works let me know.