[wp-testers] WP + IIS6 + PHP + .NET4

Felipe Correa felipe.correa at gmail.com
Tue Sep 28 14:45:17 UTC 2010


Hello there!

I just would like to share this with you.

I'm using .NET 4 on my host to try out some projects using MVC2 for ASP.NET.
But there's no other tool for blogging like WP, so I've asked for PHP
installation on it.

Everything was ok, but I couldn't use Pretty Permalinks on it, only the
PATHINFO version, that's not that pretty after all.

With PATHINFO enabled, I was getting an 404 error on "/" of my blog. The
others links was just working perfectly. When I looked to the requested url,
I was getting something like "/eurl.axd/890s9-89080-7979" that is a
"/eurl.axd/GUID/" token added on .NET4.

Suppressing this on .htaccess, like the following, enabled my blog to work
correctly.

#BEGIN
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#^(/?eurl\.axd/[a-zA-Z_0-9-]+/?)$
#blog root /
RewriteRule ^(/?eurl\.axd/[a-zA-Z_0-9-]+/?)$ index.php [NC,L]

#^(/?.*/)(eurl\.axd/[a-zA-Z_0-9-]+/?)$
#anything with eurl.axd ending
RewriteRule ^(/?.*/)(eurl\.axd/[a-zA-Z_0-9-]+/?)$ index.php/$1 [NC,L]
#END

Cheers!
-- 
Felipe Correa

@S4P0


More information about the wp-testers mailing list