WordPress.org

Ready to get started?Download WordPress

Forums

Zeus server rewrite script for WordPress (6 posts)

  1. StevieG
    Member
    Posted 4 years ago #

    I have a rewrite script which allows 'pretty permalinks' in wordpress even though I'm not using Apache server but Zeus.

    #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 ^/wp-.*$
    if matched then goto END
    ##### FIX TO ALLOW SEARCH TO WORK #####
    match URL into $ with ^/(.*)
    set URL = /index.php/$1

    This works just great when positioned in the root directory. However, it doesn'y work when I have wordpress installed in a subdirectory.

    Does anyone know what changes need to be made to the script?

  2. Phil
    Member
    Posted 4 years ago #

    Stevie, struggling bigtime, and stuck, short of learning Zeus... have tried a multitude of different scripts from around the forums / web, in the root folder & subfolders.

    On the verge dropping my ISP Namesco - its a showstopper when permalinks can not be implemented for organiations we volunteer for x several.

    All that said, what about a plugin to generate the Zeus rewrite.script that many eyeballs can validate. Namesco have a conversion tool on the control panel, tried that too, no joy.

    Any thoughts re leaning on Zeus / ISPs to support writing one ? regards Phil

  3. DavidM
    Member
    Posted 3 years ago #

    A plugin to automate Zeus rewrites seems like the optimal way to go about this given that any changes to htaccess by other plugins would easily be reflected on Zeus hosts as well. I'm looking into this one currently to see how viable it might be to invest some time in the conversion.

  4. grow1
    Member
    Posted 3 years ago #

    I've run to a similar problem but found a new version of the script at http://www.netregistry.com.au/support/articles/wordpress-seo-friendly-permalinks

    The script is as follows - replace 'wordpress' with the subdirectory of your installation:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Hope this helps anyone who is struggling with this.

  5. grow1
    Member
    Posted 3 years ago #

    Sorry about the messy post, forgot to close the href!

  6. ksnagra
    Member
    Posted 3 years ago #

    Any body found a solution to this? Don't know why my client hosts on a Zeus server :s

Topic Closed

This topic has been closed to new replies.

About this Topic