[wp-hackers] permalinks with pathinfo

Dion Hulse (dd32) wordpress at dd32.id.au
Tue Nov 22 23:53:49 UTC 2011


WordPress will suggest PathInfo URL's if it can't detect a URL rewrite
function enabled - It does this through testing for definite
capabilities it can detect, NOT by actually calling the server and
seeing if it responds correctly, WordPress does this to maximise
compatibility (ie. Don't allow something to be chosen if there's a
possibility to break)

WordPress support IIS7 and Apache, It doesn't support nginx although
it works fine with that, same as Lightspeed.
If WordPress offers Pathinfo url's, and you know the system can handle
"normal" rewritten url's, you can remove the /index.php/ section from
the permalink, just use the custom rule part and alter it there.

For the function that detects iss7 rewrite support check out this:
http://core.trac.wordpress.org/browser/trunk/wp-includes/functions.php#L3602

and make sure you have the "URL Rewrite Module 1.1" or later installed
on the server, I don't believe it's installed by default. (But I
haven't used IIS7, only earlier versions)


On 23 November 2011 10:46, Haluk Karamete <halukkaramete at gmail.com> wrote:
> I will have to do that for this client.
> But for some sites, where I need ASP capability, I will either have to
> live with pathinfo based url's or switch to another host that does not
> have problem.
>
> but it looks like, we are unable  to detect the crux of the matter.
> why is a fresh install's common settings suggest pathinfo urls as
> opposed to the pretty ones.
>
>
>
> On Tue, Nov 22, 2011 at 3:32 PM, Otto <otto at ottodestruct.com> wrote:
>> Switch from the GoDaddy Windows account to the GoDaddy Linux account.
>>
>> Really. That will solve almost all your problems. I say that as
>> somebody who used GoDaddy hosting for years.
>>
>> -Otto
>>
>>
>>
>> On Tue, Nov 22, 2011 at 4:11 PM, IC IC <icwordpress at gmail.com> wrote:
>>> I did not know that wordpress had an IIS version. I wonder what the
>>> difference is.
>>>
>>> GoDaddy has a special interface and they do the install.
>>>
>>> I wonder if the problem is with the web.config
>>>
>>> Obviously, wordpress can write to it so I can change my urls from p=123 to
>>> /index.php/2011/11/2/whatever
>>>
>>> GoDaddy provides 0 support in this matter telling this is a wordpress issue
>>> which I don'tthink it is.
>>> This matter must have to do more with url rewrite, iis and web.config.
>>>
>>>
>>>
>>> On Tue, Nov 22, 2011 at 1:54 PM, Dagan Henderson <
>>> Dagan.Henderson at epyllion.com> wrote:
>>>
>>>> I haven't played with WordPress on IIS, but I'm assuming the issue relates
>>>> to the fact that WordPress relies on mod_rewrite in Apache to disguise
>>>> index.php. Which version of WordPress did you install? There's an
>>>> IIS-specific version available here:
>>>> http://wordpress.org/wordpress-3.2.1-IIS.zip
>>>>
>>>> -----Original Message-----
>>>> From: wp-hackers-bounces at lists.automattic.com [mailto:
>>>> wp-hackers-bounces at lists.automattic.com] On Behalf Of IC IC
>>>> Sent: Tuesday, November 22, 2011 1:48 PM
>>>> To: wp-hackers at lists.automattic.com
>>>> Subject: [wp-hackers] permalinks with pathinfo
>>>>
>>>> With a new godady windows account, and with a fresh installation of
>>>> wordpress with no plugins activated, I am having the following issue.
>>>>
>>>> When I go to the permalinks screen, I get to see this
>>>>
>>>> Day and name    http://mysite.com/index.php/2011/11/22/sample-post/
>>>> Month and name    http://mysite.com/index.php/2011/11/sample-post/
>>>>
>>>> as opposed to this;
>>>>
>>>> Day and name    http://mysite.com//2011/11/22/sample-post/
>>>> Month and name    http://mysite.com/2011/11/sample-post/
>>>>
>>>> Obviously, that index.php in the middle is not my choice. The question how
>>>> did it get there? It doe not appear with my other wordpress/godaddy sites.
>>>>
>>>> If I click on the "day and name" common settings option for exammple, the
>>>> custom structure is populated as
>>>> /index.php/%year%/%monthnum%/%day%/%postname%/
>>>>
>>>> and when I save those changes, ( thoug I do not want that structure), the
>>>> site works;  all permalinks are updated to work with the name structure. so
>>>> my contactus page becomes http://mysite.com/contactus instead of the
>>>> page_id=3
>>>>
>>>> When I select custom structure and make it /%postname%/ ( as I wanted) , I
>>>> end up getting the permalinks to be updated as I like except that I end up
>>>> 404s on all urls. When I insert the index.php in the middle on a 404 URL,
>>>> wordpress is able to find the page.
>>>>
>>>> Any insight in this matter is appreciated.
>>>> _______________________________________________
>>>> wp-hackers mailing list
>>>> wp-hackers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>> _______________________________________________
>>>> wp-hackers mailing list
>>>> wp-hackers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list