Wordpress Redirect
2 posts
• Page 1 of 1
Wordpress Redirect
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?
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?
Re: Wordpress Redirect
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]
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]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests