« Previous Next »

Thread: Rule import Wizard issues

Last post 06-30-2008 10:03 AM by species5618. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-26-2008, 6:13 AM

    Rule import Wizard issues

    Just looking at the URL-Rewrite module with a plan to POC wordpress MU and came accross a few things

    1st
    being the rule import does not like "RewriteBase BASE/" saying it is not supported,
    Great, but it woudl be nice I could then manualy edit the generated XML rule set, so I can apply them, instead of having to Edit the source .htaccess and re-import the file

    2nd
    Involve the "[L]" last rule option on .htaccess
    the import wizard XML preview correctly included the  'stopProcessing="true" ' setting, but having applied the rules, the  ' stopProcessing="true" ' did not get applied to the imported rules


    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    Became
        <rule name="ImportedRule5" >
          <match url="^([_0-9a-zA-Z-]+/)?(wp-.*)" ignoreCase="false" />
          <action type="Rewrite" url="{R:2}" />
        </rule>
     NOT
        <rule name="ImportedRule5" stopProcessing="true">
          <match url="^([_0-9a-zA-Z-]+/)?(wp-.*)" ignoreCase="false" />
          <action type="Rewrite" url="{R:2}" />
        </rule>
     

     

     

     

    Lee hampton-whitehead
    Http://siliconpizza.com | I’ll have a slice of that
  • 06-26-2008, 12:54 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 636

    Re: Rule import Wizard issues

    Instead of editing the source .htaccess file and re-importing it you can edit the original mod_rewrite rules inside of the rule importer UI. As you make the edits the converted rules will be updated on the fly.

    Regarding not preserving stopProcessing flag when importing the rules - there is a bug in technical preview release that will be fixed in future releases.

    Let us know how the POC works out. I have tried to use URL rewrite module with wordpress MU and it worked fine, but only after I had applied the workaround described in this article.

    http://ruslany.net
  • 06-27-2008, 6:09 AM In reply to

    Re: Rule import Wizard issues

    Got the basic install working, my current MU implementation (on linux) using folders not hostnames for each blog http://127.0.0.1/Lee for example

    so i am currenlty getting a 404 for the themes etc "/lee/wp-content/themes/default/style.css"

    Time to brush up on my regex skill ( or lack of)

     

    Lee hampton-whitehead
    Http://siliconpizza.com | I’ll have a slice of that
  • 06-27-2008, 1:12 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 636

    Re: Rule import Wizard issues

    The wordpress MU .htaccess contains the following rules. The highlighted rule is supposed to handle the URL for themes (as well as any other files in wp-content folder):

    RewriteEngine On
    RewriteBase BASE/
    #uploaded file
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    You may want to check if you have the equivalent rule in IIS.

    http://ruslany.net
  • 06-30-2008, 10:03 AM In reply to

    Re: Rule import Wizard issues

    success, ish

    nuked the config and started again, and it all works,, slight CSS issue on the root admin pages, but other than that it all works

     

     

    Lee hampton-whitehead
    Http://siliconpizza.com | I’ll have a slice of that
Page 1 of 1 (5 items)