Skip links

WordPress permalinks not working on Namesco server

September 20, 2011

I recently had an issue with one of my website blogs where the custom WordPress permalinks would fail due to it being hosted on a namesco.co.uk server. Because the Namesco server is a ‘Zeus’ server, the usual htaccess and mod-rewrite functionality of Apache does not work. To fix this a new file needs to be created in the root directory called ‘rewrite.script’ containing the following code:

#### Please note this rewrite code works where WordPress is installed in a directory called /blog within the /web directory and ignores a directory called /admin in the root #########

#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

##### FIX FOR LOGIN/FORGOTTEN PASSWORD/ADMIN ETC #####
match URL into $ with ^/blog/wp-.*$
if matched then goto END
##### FIX TO ALLOW SEARCH TO WORK #####
match URL into $ with ^/blog/(.*)
if matched then
set URL = /blog/index.php/$1
goto END
endif

match URL into $ with ^/admin/.*
if matched then goto END

chris-parker
This website uses cookies to improve your web experience.
chris-parker

Send me a message.

Happy to answer any question you may have.

chris@chrisparkerdesign.co.uk

07813 311253

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

    CHRIS PARKER DESIGN

    chris@chrisparkerdesign.co.uk

    07813 311253