Wordpress Permalinks include index.php
4 posts
• Page 1 of 1
Wordpress Permalinks include index.php
Hello,
I've gone thru the article, http://www.helicontech.com/articles/isa ... wordpress/ , to try to configure WordPress permalinks but I'm getting 404 errors. Below are the details, settings and rules I'm using:
Server: Windows 2003, IIS 6
Wordpress: 3.4
ISAPI_Rewite: 3.0 lite
WordPress is using a subfolder in the root, e.i. "wwwroot/wordpress/"
The WordPress permalink custom structure is set to:
/%postname%/ (see attached file)
WordPress then advises to add the following to the .htaccess file which is in the .htaccess file in the WordPress folder.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
The Helicon WordPress article advises to put the following in the .htaccess file which has been done:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(\d+)/[^/]+/?$ index.php?p=$1 [NC,L]
When I remove the index.php from the permalink custom structure I get 404 errors but it works with index.php. For example http://www.domain.com/wordpress/index.php/articles/ works but http://www.domain.com/wordpress/articles/ does not.
Does ISAPI rewrite 3.0 work with WordPress on IIS 6? What rules should I add to remove index.php from the path? Do the .htaccess files work on IIS 6 in sub folders? Any suggestions to get this to work?
Thanks!
I've gone thru the article, http://www.helicontech.com/articles/isa ... wordpress/ , to try to configure WordPress permalinks but I'm getting 404 errors. Below are the details, settings and rules I'm using:
Server: Windows 2003, IIS 6
Wordpress: 3.4
ISAPI_Rewite: 3.0 lite
WordPress is using a subfolder in the root, e.i. "wwwroot/wordpress/"
The WordPress permalink custom structure is set to:
/%postname%/ (see attached file)
WordPress then advises to add the following to the .htaccess file which is in the .htaccess file in the WordPress folder.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
The Helicon WordPress article advises to put the following in the .htaccess file which has been done:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(\d+)/[^/]+/?$ index.php?p=$1 [NC,L]
When I remove the index.php from the permalink custom structure I get 404 errors but it works with index.php. For example http://www.domain.com/wordpress/index.php/articles/ works but http://www.domain.com/wordpress/articles/ does not.
Does ISAPI rewrite 3.0 work with WordPress on IIS 6? What rules should I add to remove index.php from the path? Do the .htaccess files work on IIS 6 in sub folders? Any suggestions to get this to work?
Thanks!
- Attachments
-
- Screen Shot 2012-09-12 at 2.37.28 PM.png (9.82 KiB) Viewed 3768 times
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Wordpress Permalinks include index.php
Hello,
The secret here is that you use LITE version. Take a look at the limitations. It doesn't support .htaccess files.
You need to use the rule in httpd.conf instead and apply a condition:
Regards
Andrew
The secret here is that you use LITE version. Take a look at the limitations. It doesn't support .htaccess files.
You need to use the rule in httpd.conf instead and apply a condition:
- Code: Select all
RewriteCond %{HTTP:Host} ^www\.myDomain\.com$ [NC]
Regards
Andrew
Re: Wordpress Permalinks include index.php
Does this mean only the LITE version has this type of feature?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Wordpress Permalinks include index.php
No it means, you need to use the rules in httpd.conf instead of .htaccess.
regards
Andrew
regards
Andrew
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests