• Dear WordPress,

    I am hosting my WordPress “Plakballen.nl” on an IIS server, yes I know it’s an awkward and not advice situation ??

    I had a problem with my permalinks (because of the IIS yes). But I got an work around. an httpd.ini file which rewrites my URL! This works great for my permalink structure (https://plakballen.nl/categoy/post-name) and for my page Navigation (I got a the bottom of my page). But it seems my search function doesn’t work anymore… :S If I remove my httpd.ini and set my permalinks to default it all works so it has something to do with the script (sadly enough I am not familiar with mod_rewrite).

    Can someone help me please? you can find the httpd.ini here underneath…

    Search problem: When I press search it adds the (basic) ?s= code in your url and redirects to your home page again.

    [ISAPI_Rewrite]

    [ISAPI_Rewrite]

    # For file-based wordpress content (i.e. theme, admin, etc.)
    RewriteRule /wp-(.*) /wp-$1 [L]

    # For normal wordpress content, via index.php
    RewriteRule ^/$ /index.php [L]
    RewriteRule /(.*) /index.php\?$1 [L]

    # /index.php/ is not really necessary
    # RewriteRule ^/$ / [L]
    # RewriteRule /(.*) /\?$1 [L]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I actually came across your post looking for the code for WP to start using Isapi-Rewrite because I just moved to a host that offers cross-platforms servers but uses a Windows front-end.

    You code worked perfectly but disabled my search form as well. I simply when in and removed the index.php from the form action URL and it works.

    If guess you probably figured it out by now but in case some else come across the same problem.

    rafael-p

    (@rafael-p)

    Following his example, tried with the following condition and got success:

    [ISAPI_Rewrite]
    
    # Bloquear acesso aos arquivos "httpd.ini", "httpd.parse.errors" e ao help
    RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
    RewriteRule .*\.isrwhlp / [F,I,O]
    
    RewriteRule ^(.*)/$ /index.php/$1 [L]

    Bye.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Broken search funtion – ISAPI_Rewrite’ is closed to new replies.