WordPress permalinks not working on Namesco server

By Chris on September 20, 2011 in Web Design Snippets
0
1

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

About the Author

ChrisView all posts by Chris >

0 Comments

Leave a reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.