Joomla! Discussion Forums



It is currently Sun Nov 08, 2009 7:29 am (All times are UTC )

 




Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next
Author Message
Posted: Sun Jan 15, 2006 10:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
I did a fresh install of Joomla 1.0.7 and enabled SEO. Then I renamed htaccess.txt to .htaccess

But I cannot access the homepage by just entering http://mydomain.com (with or without trailing slash) into my browser. It works if I enter http://mydomain.com/index.php and then all other pages are accessible with the SEO URLs.

I compared with another installation of Joomla 1.0.4 which also has SEO enabled, and similar global configuration, and .htaccess, and I couldn't figure out the reason why it doesn't work with 1.0.7

Is this a bug or should I change some other configuration?

Thanks :)


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 10:11 pm 
http://www.yoursite.com


Try that.


Top
   
 
Posted: Mon Jan 16, 2006 4:39 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
This is what happened. I installed Joomla at http://alpha.stanmed.net and I get a 404 if I access the site as http://alpha.stanmed.net or http://www.alpha.stanmed.net But the site is accessible at http://alpha.stanmed.net/index.php and http://www.alpha.stanmed.net/index.php

If I add the index.php, it works fine (when SEO is turned on).

Now, I have Apache 1.x from on my webhosting company's servers, and my webroot is ~/public_html but the above joomla installation is at ~/public_html/alpha

If I access http://www.stanmed.net/alpha, then everything works fine, I do not get a 404.

But I also have another joomla installtion at ~/public_html/beta and I can access beta.stanmed.net whichever way I want (as descibed above for alpha), and it works just fine.

Here is the .htaccess of my ~/public_html


Options +FollowSymLinks

RewriteEngine On

RewriteBase /


RewriteRule ^([^\.]+[^/])$ http://%{HTTP_HOST}/$1/ [R=301,L]

RewriteCond %{REQUEST_URI} !^/alpha/
RewriteCond %{HTTP_HOST} ^(www\.)?alpha\.
RewriteRule ^(.*)$ alpha/$1 [L]

RewriteCond %{REQUEST_URI} !^/beta/
RewriteCond %{HTTP_HOST} ^(www\.)?beta\.
RewriteRule ^(.*)$ beta/$1 [L]

RewriteCond %{REQUEST_URI} !^/home/
RewriteCond %{HTTP_HOST} ^(www\.)?stanmed\.
RewriteRule ^(.*)$ home/$1 [L]


Apart from this, the configuration.php and .htaccess of both the alpha and the beta sites look similar. Any pointers? Please let me know if you need any other information.

Thanks a lot :)


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 5:41 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
I think it's related to this:

http://forum.joomla.org/index.php/topic ... #msg153043


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 6:56 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 9:45 am
Posts: 629
Location: La Grande, Oregon
I know that this doesn't help, but it must be something to do with your configuration because everything is ok on my end.  The normal Joomla SEO is working great.

_________________
From the beginning...


Top
   
 
Posted: Mon Jan 16, 2006 9:23 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
Put the Joomla .htaccess file in each subdirectory. Do not try to get SEF working for subdomains/subdirectories from a root Joomla .htaccess file.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:29 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 9:45 am
Posts: 629
Location: La Grande, Oregon
Sen wrote:


I don't think so Sen.  The sef.php file was fixed and already added and debugged and blah, blah before the release of 1.0.6.  The sef.php file was actually fixed for the 1.0.5 and was available for download so you could fix it for the 1.0.5 version. 

I already posted this else where, but I did set up a subdomain with a installation of Joomla in a subfolder, renamed my htaccess file in the subfolder, and I am not having any issues.  Since you have it working with 1.0.4, could there possible be a issue with the new code and your php version, or something of that nature?  I can't seem to replicate it here.  Sorry.  My url is joomla.pioneerwestinc.com (this installation will be removed in a day or two).

Charles

_________________
From the beginning...


Top
   
 
Posted: Mon Jan 16, 2006 9:59 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Aug 17, 2005 11:26 pm
Posts: 869
charlwillia6 wrote:
The sef.php file was fixed and already added and debugged and blah, blah before the release of 1.0.6.  The sef.php file was actually fixed for the 1.0.5 and was available for download so you could fix it for the 1.0.5 version. 


Note, however, that the SEF from 1.0.5 has been changed for 1.0.7.  It is not the same code or behaviour.

_________________
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 10:08 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 10:10 am
Posts: 18
Location: Germany
Try to put this in your htaccess:

DirectoryIndex index.php index.htm index.html

Dee


Top
   
 
Posted: Mon Jan 16, 2006 1:37 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 9:45 am
Posts: 629
Location: La Grande, Oregon
Elpie wrote:

Note, however, that the SEF from 1.0.5 has been changed for 1.0.7.  It is not the same code or behaviour.


I was trying to say that.... :P

_________________
From the beginning...


Top
   
 
Posted: Tue Jan 17, 2006 1:33 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Dec 06, 2005 1:06 pm
Posts: 215
Location: Woerden, NL
DubInDee wrote:
Try to put this in your htaccess:

DirectoryIndex index.php index.htm index.html

Dee


Same problem here, but your solution doesn't work.

[edit]
The problem is partially in the sef.php. I've replaced the 1.0.7 edition with an older one and the site works again. I'm not sure if this is oke (related to security reasons).


Last edited by Lenn-art on Tue Jan 17, 2006 2:02 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jan 17, 2006 6:47 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
charlwillia6 wrote:
Sen wrote:


I don't think so Sen.  The sef.php file was fixed and already added and debugged and blah, blah before the release of 1.0.6.  The sef.php file was actually fixed for the 1.0.5 and was available for download so you could fix it for the 1.0.5 version. 

I already posted this else where, but I did set up a subdomain with a installation of Joomla in a subfolder, renamed my htaccess file in the subfolder, and I am not having any issues.  Since you have it working with 1.0.4, could there possible be a issue with the new code and your php version, or something of that nature?  I can't seem to replicate it here.  Sorry.  My url is joomla.pioneerwestinc.com (this installation will be removed in a day or two).

Charles


May be not, but I guess there's a bug lurking somewhere. As soon as I installed opensef, it works all right. I dont get a 404 anymore. I guess the core sef has a bug somewhere. I think it fails to resolve "/" to index.php or the frontpage URL or something?!


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 7:09 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 9:45 am
Posts: 629
Location: La Grande, Oregon
Maybe so, you should post it to the bug/tracker on the forge just in case, if you haven't already.  :)

_________________
From the beginning...


Top
   
 
Posted: Tue Jan 17, 2006 7:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
charlwillia6 wrote:
Maybe so, you should post it to the bug/tracker on the forge just in case, if you haven't already.  :)


Oh, I havent yet.  :o

I'll do it, thanks Charles.


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 7:18 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2399
Location: Marikina, Metro Manila, Philippines
I have been monitoring reports regards this issue.

However, I have as yet not seen any identifiable reason why people are experiencing this problem.



We have 5 Official Joomla! sites:
* http://www.joomla.org
* help.joomla.org
* http://www.opensourcematters.org
* the other 2 are yet to be launched

All are now running 1.0.7 and all have Core SEF on and all are working correctly

_________________
God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.


Last edited by stingrey on Tue Jan 17, 2006 7:21 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jan 17, 2006 7:48 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 9:45 am
Posts: 629
Location: La Grande, Oregon
Thanks Stingrey,

I mentioned this before, but could it be a Apache version issue?  That is all I can think of.

_________________
From the beginning...


Top
   
 
Posted: Tue Jan 17, 2006 8:12 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2399
Location: Marikina, Metro Manila, Philippines
charlwillia6 wrote:
I mentioned this before, but could it be a Apache version issue?  That is all I can think of.

Possibly, however I have deployed 1.0.7 on following versions of Apache

Joomla! Official sites
Apache/1.3.34

Server I provide services with
Apache/1.3.33

Clients server
Apache/1.3.27

Local Test servers
Apache/2.0.55
Apache/1.3.33

_________________
God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 10:11 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
stingrey wrote:
charlwillia6 wrote:
I mentioned this before, but could it be a Apache version issue?  That is all I can think of.

Possibly, however I have deployed 1.0.7 on following versions of Apache

Joomla! Official sites
Apache/1.3.34

Server I provide services with
Apache/1.3.33

Clients server
Apache/1.3.27

Local Test servers
Apache/2.0.55
Apache/1.3.33



I can set you up with an FTP account on a subdomain on my site where I get these error messages (Apache 1.x). I wont be able to give shell access though. Let me know if you need one.


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 11:13 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Dec 06, 2005 1:06 pm
Posts: 215
Location: Woerden, NL
Could be the problem occur by people who have installed their Joomla in a subdir? I have, because i've to redirect my URLS to a $directory i want - my hoster doesn't do that for me.
This is my config:

Code:
PHP built On:       Linux server12.firstfind.nl 2.4.29brdw1 #1 SMP Wed Jan 26 10:34:44 CET 2005 i686
Database Version:    4.1.15-Debian_0.dotdeb.0
PHP Version:    4.4.1-0.dotdeb.2
Web Server:    Apache/1.3.26 (Unix) Debian GNU/Linux mod_layout/3.2 PHP/4.4.1-0.dotdeb.2 mod_ssl/2.8.9 OpenSSL/0.9.6c
WebServer to PHP interface:    apache
Joomla! Version:    Joomla! 1.0.7 Stable [ Sunburst ] 15-Jan-2006 20:00 UTC


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 6:03 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
Lenn-art wrote:
Could be the problem occur by people who have installed their Joomla in a subdir? I have, because i've to redirect my URLS to a $directory i want - my hoster doesn't do that for me.
This is my config:

Code:
PHP built On:       Linux server12.firstfind.nl 2.4.29brdw1 #1 SMP Wed Jan 26 10:34:44 CET 2005 i686
Database Version:    4.1.15-Debian_0.dotdeb.0
PHP Version:    4.4.1-0.dotdeb.2
Web Server:    Apache/1.3.26 (Unix) Debian GNU/Linux mod_layout/3.2 PHP/4.4.1-0.dotdeb.2 mod_ssl/2.8.9 OpenSSL/0.9.6c
WebServer to PHP interface:    apache
Joomla! Version:    Joomla! 1.0.7 Stable [ Sunburst ] 15-Jan-2006 20:00 UTC




Possibly. My webhost (site5.com) also uses wildcard subdomains, so all the subdomains direct to the root domain. I use a .htaccess rewrite in my webroot to redirect to the correct directory. I also have the Joomla's .htaccess in the Joomla directory (with the proper RewriteBase directive).

I think Joomla 1.0.7's core SEO does not know how to handle the requested path (which is just a forward slash). Because the 404 I get is from Joomla, not an Apache 404. But if I install OpenSEF for Joomla 1.0.7, it resolves fine. The error goes away.

But I do not get the 404 with Joomla 1.0.4 with core SEO.

I think this is an error with the core SEO in Joomla 1.0.7.

Here's a screenshot, you can see that the URL it gives me points to itself (something goes in circles?). I also have shown the source code to show that it's a Joomla 404.

So, apache hands over fine to Joomla's index.php which chokes.


Screenshot:
http://img78.imageshack.us/my.php?image=joomla4040bm.png


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 6:05 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
Offtopic, but if you install OpenSEF latest version (2.0.something beta 3), you will get a lot of XML errors (notices, actually) on the admin backend. Download the fix for one of the files (sef.backend.php, IIRC) from the opensef.org discussion forums, and this error will go away. They said they will include this patch in rc1.


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 6:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
I FIXED IT!!! :D

This is from the core SEF file --> includes/sef.php

Code:
   } else {

      /*
      Unknown content
      http://www.domain.com/unknown
      */
      $jdir = str_replace( 'index.php', '', $_SERVER['PHP_SELF'] );
      $juri = str_replace( $jdir, '', $_SERVER['REQUEST_URI'] );

      if ($juri != "" && !eregi( "index\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/\?", $_SERVER['REQUEST_URI'] ) ) {
         header( 'HTTP/1.0 404 Not Found' );
         require_once( $mosConfig_absolute_path . '/templates/404.php' );
         exit( 404 );
      }
   }



If no matching URL is found, core SEF checks against a few possible strings to validate the incoming URL. It checks only against an empty string or index.php or index2.php or other existing directories.

But it never checks if the incoming REQUEST_URI is just a /

If I add that, it starts working all right.

This is what I changed line 216 to:

Code:
      if ($juri != "/" && $juri != "" && !eregi( "index\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/\?", $_SERVER['REQUEST_URI'] ) ) {


Note that I check against a single forward slash. Because some Apache configurations may just provide this. Core SEF did not check against it, causing the Joomla 404. But when I installed OpenSEF, it handled this properly.

Let me know if there are any errors, security risks, etc with my fix. Thanks.


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 6:42 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Dec 06, 2005 1:06 pm
Posts: 215
Location: Woerden, NL
Sen wrote:
Offtopic, but if you install OpenSEF latest version (2.0.something beta 3), you will get a lot of XML errors (notices, actually) on the admin backend. Download the fix for one of the files (sef.backend.php, IIRC) from the opensef.org discussion forums, and this error will go away. They said they will include this patch in rc1.


Maybe the Lenn-art here and lennart @ opensef-forum are the same :) I've installed openSef and i like the possibilities of opensef (for example: you can specify http://www.domain.tld/gothere for a much longer URL). So, i think i stay with opensef


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 9:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 10:15 pm
Posts: 11
Sen,

Im also with site5 - could this be the way their servers are configured....? I was having a problem where my administrator folder was pw protected with htaccess but I always got a 404 - i.e never prompted for the password. With the 1.07 version of sef.php I couldnt access the administrator folder.
With your fix, I can access administrator but not from http://www.mysite.com/administrator, only from mysite.com/administrator/index.php, so at least that's something.....


Last edited by antrimcoaster on Tue Jan 17, 2006 9:26 pm, edited 1 time in total.

Top
   
 
Posted: Tue Jan 17, 2006 9:46 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
This issue is being followed in this tracker:

http://forge.joomla.org/sf/go/artf3108?nav=1


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 9:47 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
antrimcoaster wrote:
Sen,

Im also with site5 - could this be the way their servers are configured....? I was having a problem where my administrator folder was pw protected with htaccess but I always got a 404 - i.e never prompted for the password. With the 1.07 version of sef.php I couldnt access the administrator folder.
With your fix, I can access administrator but not from http://www.mysite.com/administrator, only from mysite.com/administrator/index.php, so at least that's something.....




Does http://www.mysite.com work? If not, it's a DNS issue.

If DNS is okay, can you post your .htaccess please? It's easy to fix.


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 11:32 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jan 17, 2006 11:30 pm
Posts: 27
well .. all is working fine with this fix except facile forms component, 404 error on all places where a facile form should be placed


Top
  E-mail  
 
Posted: Wed Jan 18, 2006 12:05 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 19, 2005 9:17 pm
Posts: 31
gdanx wrote:
well .. all is working fine with this fix except facile forms component, 404 error on all places where a facile form should be placed



What is a facile form? Did it work before the fix? By fix, did you mean my edit of core sef or installing opensef?


Top
  E-mail  
 
Posted: Wed Jan 18, 2006 2:02 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 9:45 am
Posts: 629
Location: La Grande, Oregon
If Facile forms isn't working then it probable is an issue with the sef_ext.php file for that component (if it even has one).  You must be using OpenSEF, because it should still work with just Joomla's SEF on.

_________________
From the beginning...


Top
   
 
Posted: Wed Jan 18, 2006 6:13 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Sep 04, 2005 3:36 pm
Posts: 65
I also thought there is a "bug" in Joomla 1.07 regarding this.
But now, I'm not sure where the "bug" is!

Yesterday I did a new installation of Joomla 1.07, on a brand new domain, installed in the root "public_html" folder on a WHM/cPanel server.

All was working OK right away, installed MosCE and Norwegian language and turned on Joomla SEO.

One thing I do ASAP on a new domain using Joomla, is to protect the "administrator" folder using "Password Protect Directories" function in cPanel.

This is something I have on all my other domains using Joomla/Mambo, and never had any problems before Joomla 1.07!
After I did this, I can no longer use URL /administrator/. Using this I get a 404 page, or just the frontend.
I did try the "fix" Sen outlined earlier in this thread, but his fix did not work for me.
I also tried the "sef.php" fix that was posted here after the 1.05 release also have some kind of problems with SEO. Did not work either.

But in some last "testing" before writing here, I turned of the password I had set on the "administrator" folder, and using only the URL /administrator/ started to work again, so I do not need to use /administrator/index.php to get in to backend.

Password protect "administrator" folder in Joomla 1.04 works without any problems, so I looks for me that there is a "bug" with SEO after Joomla 1.04 was released, this is the "newest" version I have used until yesterday with a new installation of 1.07.

_________________
Troll
--------------------------------------------------------------------------------
"Tell me and I will forget;
show me and I may remember;
involve me and I will understand"


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group