[Pmwiki-users] using "path_info" (for google-friendly indexing) irregardless of mod_php or cgi
J. Perkins
jason
Sat Dec 27 19:03:52 CST 2003
Finally got a chance to try this. FWIW, it doesn't work on IIS.
Jason
Paul Williams wrote:
> Hello. I've made the following change to allow pmwiki to use the
> PATH_INFO regardless of weather your php install is via CGI or mod_php.
> This works for me on my hoster's site which doesn't use PHP as a module,
> but I cannot speak for folks who may be stuck with IIS as a server.
>
> Cheers
> ~ Paul
>
> u35465333:/kunden/homepages/29/d89240386/htdocs/devel > diff stock pmwiki.php
> 221,222c221,222
> < $EnablePathInfo = !preg_match("/^cgi/",php_sapi_name());
> < if ($pagename=='' && $EnablePathInfo)
> ---
>> $EnablePathInfo = 1; #!preg_match("/^cgi/",php_sapi_name());
>> if ($pagename=='' && $EnablePathInfo) {
> 223a224,226
>> $pagename = str_replace( "/", ".", $pagename);
>> }
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list