Thread Starter
2tempo
(@2tempo)
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! 🙂
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 :/
Thread Starter
2tempo
(@2tempo)
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!