Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

HELP!! ISAPI_Redirect 2 rules for Wordpress 2.7 on Windows Minimus?

Options
  • 26-05-2009 7:44pm
    #1
    Registered Users Posts: 12,309 ✭✭✭✭


    Hi ho...

    I'm running a couple of Wordpress sites on a Blacknight shared Windows (Minimus) server and, so far, have been using the not-so-pretty format permalinks, i.e.:

    http://myblog.com/index.php/year/month/day/post-title/

    Today I decided I wanted to chop out the "index.php/" part, thus prettying them up. This got me wondering a number of things (not least of which was "WHY did I sign up for WINDOWS Minimus and not Unix/Linux???!!")... basically ... how do I do it?

    Anyway... to switch to these 'friendlier' permalinks, I eventually realised, after searching around a bit, I needed to use ISAPI_Redirect (Blacknight have version 2 on their server) - whis is essentially the IIS equivalent of Apache's mod_rewrite, and write myself a httpd.ini to work with Wordpress.

    This was the httpd.ini that was recommended:
    [ISAPI_Rewrite]
    # Rules to ensure that normal content gets through
    RewriteRule /software-files/(.*) /software-files/$1 [L]
    RewriteRule /images/(.*) /images/$1 [L]
    RewriteRule /favicon.ico /favicon.ico [L]
    RewriteRule /robots.txt /robots.txt [L]
    
    # For file-based wordpress content (i.e. theme), admin, etc.
    RewriteRule /wp-(.*) /wp-$1 [L]
    
    # Rule to perform 301 redirect (Remove index.php if specified)
    RewriteRule /index.php/(.*) /$1 [I,RP]
    
    # For normal wordpress content, via index.php
    RewriteRule ^/$ /index.php [L]
    RewriteRule /(.*) /index.php/$1 [L]
    

    This worked... once or twice, but 99+% of the time, it's bringing back a "redirect loop" error saying that "The site is redirecting the request in a way that will never complete."

    Been googling and trying multiple different configurations of the httpd.ini file and nothing works...

    Has anyone got any suggestions?

    (And yes,... I know the best suggestion is 'switch to Unix'... let's just pass on that for now, shall we?)


Comments

Advertisement