[wp-testers] Forced custom permalink structure with PATHINFO?

HelixGalaxy helixgalaxy at gmail.com
Sat Apr 24 03:15:26 UTC 2010


Hello Dion ,

Was some of the logic also that all links are stripped out of www?

This is not the case with 2.9.2?

Regards,
Martin



2010/4/24 HelixGalaxy <helixgalaxy at gmail.com>

> Hello,
>
> Thanks.
>
> That filter works, but I don't think this is the right way to go, forcing
> it like that. It is enough having /index.php explained in the codex and
> let people shoose it for themselves if they need it.
>
> Think this should be taken out.
>
> Having IIS6 and mod_rewrite compatibility confuses people what is going on.
>
> Regards,
> Martin
>
>
>
> 2010/4/24 Dion Hulse (dd32) <wordpress at dd32.id.au>
>
> Some logic was changed recently (by me) which might've caused it.
>> (See
>> http://core.trac.wordpress.org/changeset/14051/trunk/wp-admin/options-permalink.php)
>>
>> The check for forcing it is:
>>
>>
>> 79      if ( ! got_mod_rewrite() && ! $iis7_permalinks )
>> 80              $prefix .= '/index.php';
>>
>>
>> If you're running IIS7 then you shouldnt be seeing it.
>> If you're running something else, you may need to force WordPress to
>> realise it.
>>
>> For example:
>> add_filter('iis7_supports_permalinks', '__return_true'); //__return_true
>> is a 3.0 function, that does what it says..)
>>
>> You can put that in a plugin, or in a theme functions.php file, or in a
>> /wp-content/mu-plugins/force-iis_permalinks.php file, etc.
>>
>>
>>
>> On Sat, 24 Apr 2010 11:58:14 +1000, HelixGalaxy <helixgalaxy at gmail.com>
>> wrote:
>>
>>   Hi,
>>>
>>> Downloaded the latest nightbuild and after installing I see that when I
>>> want
>>> to set the custom permalink structure is forced on me with /index.php in
>>> front?
>>>
>>> Why and how can this be removed? Is it a bug?
>>>
>>> It wasn't a problem some nights ago ...
>>> Yes I run IIS on WIndows, but have no problem with mod_rewrite
>>> compatibility.
>>>
>>> Regards,
>>> Martin
>>> _______________________________________________
>>> wp-testers mailing list
>>> wp-testers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>
>>>
>>
>> --
>> Dion Hulse / dd32
>>
>> Contact:
>>  e: contact at dd32.id.au
>>  msn: msn at d32.id.au
>>  skype: theonly_dd32
>>  Web: http://dd32.id.au/
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>
>
>


More information about the wp-testers mailing list