Page 1 of 1

Links with index.php?/[identifier] are taking me nowhere..

Posted: Mon Apr 25, 2005 5:15 pm
by Incy
Hello there,

I am using IIS, and have been having lots of problems doing simple things, such as Logging in.

The problem was that the links are all formatted as e.g. "http://www.myweb.com/blog/index.php?/admin", clicking upon such a link meant going back to http://www.myweb.com/blog/index.php in my configuration.

It has taken me a while to figure out how this thing works, but I found the solution, for all you people out there that have similar problems. It seems that the requested REQUEST_URI parameter in the $_SERVER settings does not exist with my configuration (which is windows with IIS, Serendipity v0.8.).

The problem can be solved altering the index.php file in the main directory. On line 28 you will find $uri = $_SERVER['REQUEST_URI'];.
I added the following lines below this, to rid myself of unfunctional links:

if (strcmp($uri, "") == 0) {
$uri = $_SERVER['QUERY_STRING'];
}

This seems to have fixed my problem, I hope it fixes yours as well :-).

Kind regards,
Incy

incy@darthincy.com
www.darthincy.com - soon with Blog :-)

Re: Links with index.php?/[identifier] are taking me nowhere

Posted: Mon Apr 25, 2005 5:51 pm
by garvinhicking
We have also patched this solution to the upcoming 0.9 release and possible 0.8 maintainenace releases.

Also this solution was posted here on the forums on other occasions. Thanks a lot for your help and I hope you'll continue to have fun :)

Regards,
Garvin