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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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

  • 26-05-2009 6:44pm
    #1
    Registered Users, Registered Users 2 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