Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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

  • 26-05-2009 07:44PM
    #1
    Registered Users, Registered Users 2 Posts: 12,311 ✭✭✭✭


    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