WordPress SEO Advice

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.

Permalink Settings

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.

51 Comments

  1. Barry
    July 11, 2011 at 12:39 pm

    Do you know if this works with other servers like Windows servers or is this a Zeus specific fix?

    Reply
    • Niall Flynn
      July 12, 2011 at 10:31 am

      I 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?

      Reply
  2. Terry Kendrick
    August 25, 2011 at 8:59 pm

    Hi – Thanks for this script works on the main site but then mess up the admin access to the website? Any ideas

    Regards Terry

    Reply
    • Niall Flynn
      August 25, 2011 at 9:36 pm

      Not 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.

      Reply
  3. Gareth
    October 28, 2011 at 4:46 pm

    Hi, 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.

    Reply
    • Niall Flynn
      October 28, 2011 at 4:58 pm

      I 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.

      Reply
    • Gareth
      October 28, 2011 at 5:08 pm

      It’s fine I fixed it. Had the site in a sub-directory so had to change the path in the script.

      Reply
      • Niall Flynn
        October 28, 2011 at 5:09 pm

        Glad it helped :)

        Reply
  4. Chris
    March 9, 2012 at 1:43 am

    Thank you so much I was going in circles trying to make .htaccess work. Thanks for sharing the knowledge.

    Reply
    • Niall Flynn
      March 14, 2012 at 10:53 am

      Glad to help, move host it’s the best option :)

      Reply
  5. Caroline
    March 14, 2012 at 8:52 am

    Thank you for this! Worked like a charm!!!!

    Reply
    • Niall Flynn
      March 14, 2012 at 10:51 am

      Glad 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 :)

      Reply
  6. Maria Robertson
    June 15, 2012 at 10:08 am

    I 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 …

    Reply
    • Niall Flynn
      June 15, 2012 at 10:53 am

      You 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.

      Reply
  7. Shane
    July 2, 2012 at 6:41 pm

    Hi, 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?

    Reply
    • Niall Flynn
      July 2, 2012 at 6:45 pm

      Register 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/

      Reply
      • Shane
        July 2, 2012 at 7:34 pm

        Thanks for prompt reply. I know the Zeus server thing is annoying but could you explain what else they fail on regarding wordpress?

        Reply
        • Niall Flynn
          July 2, 2012 at 7:37 pm

          I 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 :(

          Reply
          • Shane
            July 2, 2012 at 7:46 pm

            Fair 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 pm

            Glad to have helped :)

  8. Confused
    August 18, 2012 at 6:29 pm

    Hi 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

    Reply
  9. Confused
    August 18, 2012 at 6:35 pm

    It’s ok man – I sorted it out – your fix is perfect. Many thanks. Looks like I will have to start transferring my site.

    Reply
  10. Niall Flynn
    August 19, 2012 at 2:41 pm

    I 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 :)

    Reply
  11. Si
    August 24, 2012 at 11:10 am

    Hi 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!

    Reply
  12. Si
    August 24, 2012 at 11:17 am

    Oh never mind sorted it but thanks so much again! I’ll deffo be using that Spiral bunch after all of this!!

    Reply
    • Niall Flynn
      August 24, 2012 at 11:21 am

      Glad to pass it on you can change that in the general settings :)

      Reply
  13. Olie
    August 30, 2012 at 2:36 pm

    Thanks 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

    Reply
    • Niall Flynn
      August 31, 2012 at 12:30 pm

      Thanks 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 :)

      Reply
  14. Darragh Verschoyle
    August 31, 2012 at 12:35 pm

    Nice 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″?

    Reply
    • Niall Flynn
      August 31, 2012 at 12:40 pm

      I 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 :(

      Reply
  15. kenneth Topham
    September 26, 2012 at 11:16 am

    Hi 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?

    Reply
  16. Niall Flynn
    September 26, 2012 at 11:48 am

    I 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.

    Reply
  17. kenneth Topham
    September 26, 2012 at 12:01 pm

    yeah 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!

    Reply
  18. susie
    October 29, 2012 at 2:23 pm

    Hi

    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

    Reply
  19. Niall Flynn
    October 29, 2012 at 2:26 pm

    Hi Susie, I just sent you an email, this should be an easy fix :)

    Reply
  20. David Horn
    November 12, 2012 at 12:04 pm

    I 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!

    Reply
  21. Niall Flynn
    November 12, 2012 at 12:12 pm

    Glad to have helped, you are going to have ‘fun’ on Zeus, my advice is to switch hosting less hassle all round.

    Reply
  22. Gareth Loughran
    December 22, 2012 at 7:04 pm

    Thanks 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?

    Reply
    • Niall Flynn
      January 13, 2013 at 10:41 pm

      No 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 :)

      Reply
  23. Ronan
    January 16, 2013 at 10:55 pm

    This 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

    Reply
  24. Niall Flynn
    January 16, 2013 at 11:13 pm

    Any time, first of many on a Zeus server but if it helps, glad to pass it on.

    Reply
  25. Ed Leamy
    January 21, 2013 at 12:26 am

    Thanks a million Niall, really helpful and worked first time.

    Reply
    • Niall Flynn
      January 21, 2013 at 12:30 am

      Glad 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.

      Reply
  26. simon mcdermott
    February 20, 2013 at 4:27 pm

    Hi 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

    Reply
  27. Niall Flynn
    February 20, 2013 at 4:29 pm

    Don’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.

    Reply
  28. Humayun
    February 26, 2013 at 3:55 pm

    Hi

    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

    Reply
  29. Aoife
    March 20, 2013 at 9:32 am

    This is exactly what I needed. Thanks so much for your help!

    Reply
  30. 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

    Reply
  31. Niall Flynn
    March 21, 2013 at 1:12 am

    Just 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.

    Reply
  32. Cian
    August 21, 2013 at 3:39 pm

    Thanks for this – was going mad trying to work out what the problem was with this! Sorted now.

    Reply
  33. Niall Flynn
    August 21, 2013 at 3:43 pm

    I am afraid you are so far from sorted it is scary, this is the first of around 500 issues you are going to have, checkout http://www.spiralhosting.ie WordPress will just work :)

    Reply

Leave a comment