Had some problems with Joomla 1.0.8 and fixed them as follows:
- Search result lookup
- Login
- Logout (using the button) failed, a logout using the anchor was ok
Common: All cases the user browser was showing something like
Code:
Not Found
The requested URL /http:/xxxxx was not found on this server.
Note the slash in front of URL!
The server log showed
[Sun Mar 26 12:43:43 2006] [error] [client 88.116.147.190] File does not exist: /home/virtual/site32/fst/var/www/html/http:, referer....
Note http: at the end
Following fix solved the login/logout problems;
Code:
diff /opt/lampp/htdocs/joomla/index.php .
153,157c153
< if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
< // checks for the presence of a return url
< // and ensures that this url is not the registration or login pages
< mosRedirect( $return );
< } else {
---
> if ( $return ) {
175,179c171
< if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
< // checks for the presence of a return url
< // and ensures that this url is not the registration or logout pages
< mosRedirect( $return );
< } else {
---
> if ( $return ) {
Practically the URL is always recreated by that fix in case of login/logout
The Search-Result lookup problem was fixed that way:
Code:
diff /opt/lampp/htdocs/joomla/components/com_search/search.html.php .
158c158
< <a href="<?php echo sefRelToAbs($row->href); ?>" target="_blank">
---
> <a href="<?php echo $row->href; ?>" target="_blank">
171a172
>
I dont know how general those changes are as I have a configuration where $mosConfig_live_site represents a linked host (declared as proxy within .htaccess), nevertheless for me it worked.