WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess file for Zeus (4 posts)

  1. 2tempo
    Member
    Posted 1 year ago #

    Hi,

    I am having some difficulties with the new site not being found when new site dashboard being clicked and I think it maybe the .htaccess file.

    I am with names.co.uk and they use Zeus which it seems does not support .htaccess and needs to be called rewrite.script ... which is written in an entirely different way... nice!

    Anyone have the correct script I need to put into this file to get it working?

    I have checked these links:

    http://serverfault.com/questions/415066/combine-wordpress-and-subdomain-rewrite-rules-for-the-server-zeus
    http://www.names.co.uk/support/support_centre_home/528-zeus_rewrite_rules_user_guide.html

    but I am not confident/experienced enough to start messing around!

    Help much appreciated and will come in handy for others on Zeus.

    Thanks

  2. 2tempo
    Member
    Posted 1 year ago #

    Hi,

    I guess by the huge response to this post ;-) I am alone.. after 2 days of trawling the web I found this script:

    #Zeus webserver version of basic 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
    match URL into $ with ^/blog/([_0-9a-zA-Z-]+/)?files/(.+)
    if matched then
    set URL=/blog/wp-includes/ms-files.php?file=$2
    goto END
    endif
    match URL into $ with ^/blog/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes|login).*)
    if matched then
    set URL=/blog/$2
    goto END
    endif
    match URL into $ with ^/blog/([_0-9a-zA-Z-]+/)?(.*\.php)$
    if matched then
    set URL=/blog/$2
    endif
    match URL into $ with ^/blog/(.*)
    if matched then
    set URL=/blog/index.php
    goto END
    endif

    Unfortunately I am still getting a "404 page not found". When I click dashboard or visit site in the site list it tries to find a URL (www.mydomain.com/it/wp-admin/) which of course doesn't exist anywhere.

    Question: will clicking the "Update Network" button help or make it worse?

    Thanks for any replies... even a nod would do just to make me feel this post is actually being read by anyone! :-)

  3. There aren't a lot (like ... more than 4) people I know of using Zeus for WordPress. Or at all, to be honest, so you're kind of on your own :/

  4. 2tempo
    Member
    Posted 1 year ago #

    Hi Mika,

    thank you for taking the time to reply!

    I have eventually found a solution, but this only worked on a (Namesco) Zues server so it may not work for others.

    Personally I think it would be a good idea, even though we are few, to make a sticky post or add a note to the installation guide about this issue so people in future don't have the same stress caused by such a small thing as a code!

    #Zeus webserver version of basic 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
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?files/(.+)
    if matched then
    set URL=/wp-includes/ms-files.php?file=$2
    goto END
    endif
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes|login).*)
    if matched then
    set URL=/$2
    goto END
    endif
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?(.*\.php)$
    if matched then
    set URL=/$2
    endif
    match URL into $ with ^/(.*)
    if matched then
    set URL=/index.php
    goto END
    endif

    Thank you and may the fArce be with you... always!

Topic Closed

This topic has been closed to new replies.

About this Topic