Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 9:26 am (All times are UTC )

 




Post new topic Reply to topic  [ 13 posts ] 
Author Message
Posted: Mon Jan 16, 2006 12:43 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 04, 2006 1:39 pm
Posts: 25
Location: Cape Town, South Africa
Since the upgrade to Joomla 1.0.7 I cannot access the admin login on my subdomains.

I assume it has something to do with the SEF and .htaccess, since I am getting a Joomla 404 error page.

I renamed htaccess.txt to .htaccess as usual, but now I noticed the following:

Code:
##
## NOTE!
## When using multiple Joomla sites or other web applications in sub-folders,
## you must explicitly turn the RewriteEngine off or use the settings
## recommended for the application
##


I am having one joomla website in root (http://www.domain.com) and four separate joomla installations on subdomains (subdomain.domain.com), whereby the subdomains are actually folders within the public_html directory.

I managed to log in actually via the "very wrong path", e. g. domain.com/subdomain and then to change the link in the browser to the proper one according DNS set up, otherwise the Editor does not work, but this is not my preferred login-option to the admin backend. 

Can anyone help me what to change in the .htaccess file to change or give me the recommendations for multiple Joomla sites according to the htaccess comments?

Thank you in advance

Robert

_________________
http://www.goodhopemcc.org - The "happy" church in Cape Town
http://www.genderdynamix.co.za - Life is not just black and white


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 12:55 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Oct 21, 2005 1:47 am
Posts: 4
MODS:  Can you move this under this thread?
http://forum.joomla.org/index.php/topic,30653.0.html

Thanks!

Seems, we both have the same questions
=======================================

Hi,

Some questions about the rewrite rules and SEF...

Conditions
  • Joomla 1.0.7
  • SEF Enabled
  • Create a subdirectory in Joomla install directory
  • Create basic .htaccess file and .htpasswd file for subdirectory
  • Create basic content or enable server directory listings for subdirectory

Problem
  • With Auth declarations in the subdirectory .htaccess file you get rewritten to the new 1.0.7 404 page
  • With Auth declarations commented out of .htaccess file you can go into the subdirectory and look at content

I like to install Joomla in my public_html directory and use subdirectories for other things such as forums, documents, etc.  However, I like to password protect some of these directories.  However, with this current setup, I cannot protect directories within the Joomla root without getting rewritten to the 404 page.

Is this as simple as a new rewrite rule in the parent Joomla directory?

Thanks,

Marcos
=============================
Edit:

It seems to be the "Require valid user" part of the .htaccess file that triggers the problem


Last edited by blort on Mon Jan 16, 2006 2:42 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Jan 16, 2006 12:03 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 04, 2006 1:39 pm
Posts: 25
Location: Cape Town, South Africa
Would it help to add a line into the .htaccess file *not* trying to re-write certein directories?

But how should this line look?

Thanks.

_________________
http://www.goodhopemcc.org - The "happy" church in Cape Town
http://www.genderdynamix.co.za - Life is not just black and white


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 1:27 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 29, 2005 2:47 am
Posts: 5
Having same issues here too. My root installation made it through the upgrade, but my subdirectory installs failed, with a lockout of the admin area and the whole site going offline and defaulting to offline announcement screen to contact the administrator of this website. When I threw the sef switch in global admin, it kicked me out to the area. The htaccess has changed so much that I am at complete odds with it.???

Problem solved with this thread, regarding the issue of no login or blocked login at admin section http://forum.joomla.org/index.php?PHPSESSID=e484c04e5a25a8869f63d68325245294&topic=30618.0 however my global editing area has now been thrown into unwritable mode. This happened at root as well, is this the work of htaccess again?

_________________
Individual human beings are not self-sufficient; no one working alone can acquire all of the genuine necessities of life. In order to resolve this difficulty, we gather together into communities for the mutual achievement of our common goals. Plato(427-347 BC)


Last edited by MoCmS on Mon Jan 16, 2006 1:44 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Jan 16, 2006 2:33 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Mon Aug 29, 2005 10:17 am
Posts: 7149
Location: Netherlands/S'pore/Bali/North America
MoCmS wrote:
Having same issues here too. My root installation made it through the upgrade, but my subdirectory installs failed, with a lockout of the admin area and the whole site going offline and defaulting to offline announcement screen to contact the administrator of this website. When I threw the sef switch in global admin, it kicked me out to the area. The htaccess has changed so much that I am at complete odds with it.???

Problem solved with this thread, regarding the issue of no login or blocked login at admin section http://forum.joomla.org/index.php?PHPSESSID=e484c04e5a25a8869f63d68325245294&topic=30618.0 however my global editing area has now been thrown into unwritable mode. This happened at root as well, is this the work of htaccess again?

noope that is normal...resets to unwritable...before making changes tio your global config you need to set the permissions to 777. as soon as ready back to 644
Leo

_________________
For Specialized & Individual Support:: http://gws-desk.com
Professional Joomla Web-Development:: http://gws-studio.com
Joomla Specialized Shared & Reseller Hosting at gws-host.com


Top
   
 
Posted: Mon Jan 16, 2006 2:46 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Oct 21, 2005 1:47 am
Posts: 4
This sounds like two separate issues to me.  Regarding the subdirectory protection issue, this is what I can tell.  The parent Joomla .htaccess file rewrites all requests unless they [1] a file ending in one of the extensions in the first line, [2] a file, or [3] a directory.

Code:
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php


Then the request gets passed on to the includes/sef.php routines which don't process authorization requests.  For some reason which I don't understand, the rules above let you into a subdirectory (under the !-d rule I assume), but as soon as you activate the "Require-valid user" part of the subdirectory's .htaccess file you get the Joomla 404 page instead of a password request box.

I've tried as many of the directory matching rules as I can muster for exceptions, but while they work with the "Require-valid user" field commented out in the subdirectory, as soon as an HTTP password is required I end up back at the Joomla 404 page.

I think not being able to HTTP password protect subdirectories is a problem.  I don't know if this is a bug, but it certainly is causing me problems.

Marcos


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 3:59 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 04, 2006 1:39 pm
Posts: 25
Location: Cape Town, South Africa
I also think, we're mixing here two different problems.

My issue is actually that I would like to know what to add in the .htaccess file in the joomla root installation (public_html/) in order to get the joomla admin login for the subdomains (e. g. subdomain.domain.com which is public_html/subdomain) when typing subdomain.domain.com/administrator

That is the point where I am getting the new Joomla 404 page.

Don't get me wrong: The site itself on subdomain.domain.com works perfectly. It's just the admin-login, which gets the Joomla 404.

Thanks in advance.

Rob

_________________
http://www.goodhopemcc.org - The "happy" church in Cape Town
http://www.genderdynamix.co.za - Life is not just black and white


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 7:20 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Oct 21, 2005 1:47 am
Posts: 4
Rob,

Are you password protecting your subdomain admin logins?  Also, what did you use to create your subdomains?  CPanel or something similar?

Marcos


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 8:50 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 04, 2006 1:39 pm
Posts: 25
Location: Cape Town, South Africa
blort wrote:
Rob,

Are you password protecting your subdomain admin logins?  Also, what did you use to create your subdomains?  CPanel or something similar?

Marcos


No, the directories are not password protected. They were automatically created through cpanel when creating the subdomains.

I must mention, that the problem only comes since 1.0.7 (I updated via FTP) and that the normal viewing of the site is without any problems.

I can access the admin-backend via http://domain.com/subdomain/administrator to get the backend login-screen and then after logging in changing the url in the browser to subdomain.domain.com/administrator/index2.php to get TinyMCE to work. Even though it's quite annoying, I can manage, but it's not a solution for the other people who need to go sometimes in the backend.

_________________
http://www.goodhopemcc.org - The "happy" church in Cape Town
http://www.genderdynamix.co.za - Life is not just black and white


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:31 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Oct 21, 2005 1:47 am
Posts: 4
If I remember correctly, cPanel puts in a rewrite rule for each subdomain in your public_html .htaccess file.  Perhaps they are stepping on each other since the Joomla rewrite rules seem pretty inclusive so I don't know if there is a conflict there.  But, I do think that to get x.domain.com versus domain.com/x is through a rewrite which is likely getting overruled later by the Joomla rules.  I messed around with directory exclusions with a rewrite condition, but I couldn't get it to work for my http password issues.  It was something like:

RewriteCond %{REQUEST_FILENAME} !/.*administrator.*$

It matched the directory when I had Require valid-user off, but didn't solve my version of this problem.  I agree that the prime suspect is the Joomla .htaccess rules although I haven't found a good work around yet for my issue.  I hope we get some developer feedback, because I think both of these issues are a serious problem, especially for those trying to do a couple things with one domain.

I'll keep plugging on my end.


Top
  E-mail  
 
Posted: Sun Jan 29, 2006 5:40 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 2:46 am
Posts: 777
Location: Washington State, USA
You guys have any success with this? I've never been able to get my simple redirect to work with .htaccess.

I just want my http://www.mydomain.com to redirect to http://www.mydomain.com/cms/

The problem is the same as you all have described with the sub domains. It's like the sub domain follows the same rule even though I have an htaccess in that folder without the redirect. If I access it using http://www.domain.com/subdomain it works but that's not the point of subdomains.

I can't see where cPanel sets up the subdomains 'cause it's not in the htaccess in my webroot.

_________________
New to Joomla? :) Make sure2 visit:
\_Anna's Joomla Tips - index.php/topic,5503.0.html


Top
   
 
Posted: Sun Jan 29, 2006 9:24 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 7:13 am
Posts: 13256
You might try out this thread. Gram had some really good points in his .htaccess configuration.

_________________
Antonie de Wilde - Forum admin
All Joomla! release dates and days between releases: http://jfoobar.org/blog/189-days-betwee ... a-releases.test


Top
   
 
Posted: Sun Jan 29, 2006 6:05 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 2:46 am
Posts: 777
Location: Washington State, USA
Thanks Tonie,

lots of good info in that post. I'll give some of those a try.

_________________
New to Joomla? :) Make sure2 visit:
\_Anna's Joomla Tips - index.php/topic,5503.0.html


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 3 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