Forums

Custom post type rewrite rules on nginx (2 posts)

  1. krugazul
    Member
    Posted 1 year ago #

    I have set up the wootheme "Estate" and WordPress 3.0.1
    Here is the link to the site.
    http://estate.feedmydemo.co.za/

    It is currently running on an nginx server. Currently the custom post types do not work, they return a 404 error page.

    Archive Page - http://estate.feedmydemo.co.za/location/boland/
    Single Post - http://estate.feedmydemo.co.za/property/deluxe-view/

    I have done some debugging and found that none of the rewrite rules are being added in. ( I printed out the $wp_rewrite global var, and the permalinks are set to a custom structure of "/%postname%/")

    I installed the theme on my home machine running wampserver2. Below are the two links for the rewrite rules (excuse the format)
    Local: http://estate.feedmydemo.co.za/local-rewrite-rules/
    Live: http://estate.feedmydemo.co.za/live-rewrite-rules/

    What I need help with is figuring out how to get the rewrite rules to be added/updated on an nginx server.

  2. krugazul
    Member
    Posted 1 year ago #

    Hi Everyone

    A little bit of info i have found out on this problem.

    nginx doesnt use a .htaccess file. Our sys admin writes up a conf file based on a similar principle to this link.
    nginx rewrite rule

    • line 14 would be /wp-includes/ms-files.php for wordpress 3.0 mu

    We are doing further testing and debugging on how to do this dynamically.

Topic Closed

This topic has been closed to new replies.

About this Topic