Wordpress Redirect

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 1
Joined: 05 Feb 2013, 10:55

Wordpress Redirect

05 Feb 2013, 10:57

Hi,

I've been suggested to put in the following into an httpd.ini file for our WordPress 3.x site. But it is not working correctly... Most pages load, except if I place a manual file in the root of the site for download outside of WordPress.

[ISAPI_Rewrite]

RewriteEngine On

RewriteBase /
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule /wp-(.*) /wp-$1 [L]
RewriteRule ^/$ /index.php [L]
RewriteRule /category/(.*) /index.php?category_name=$1 [I,U,O]
RewriteRule ^/(.*)$ /index.php/$1 [L]

Error is....

Line 3: Unrecognized string: RewriteEngine On
Line 5: Unrecognized string: RewriteBase /
Line 6: Unrecognized string: RewriteCond ${REQUEST_FILENAME} !-f
Line 7: Unrecognized string: RewriteCond ${REQUEST_FILENAME} !-d

What is the correct why to handle this?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Wordpress Redirect

06 Feb 2013, 06:12

The thing is that you've put v3 rules into v2 config.
The rules for v2 might be like this:

[ISAPI_Rewrite]

RewriteRule /wp-(.*) /wp-$1 [L]

RewriteRule ^/$ /index.php [L]

RewriteRule /category/(.*) /index.php?category_name=$1 [I,U,O]

RewriteRule ^/(?!(?:images|css|js|index\.php|all|other|physical|files|and|folders))(.*)$ /index.php/$1 [L]

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 4 guests