.htaccess help - Frontend login and https - page not found

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
eosuser1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Nov 14, 2009 3:40 am

.htaccess help - Frontend login and https - page not found

Post by eosuser1 » Sat Nov 14, 2009 4:17 am

HI,
We have a site that just installed with a "Joomla1.5" folder in the public_html folder so we needed to add this to the .htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} ^sunrisebconline.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.sunrisebconline.com$ [NC]
RewriteCond %{REQUEST_URI} !^/joomla1.5/
RewriteRule ^(.*)$ /joomla1.5/$1

all our content comes up ok with the above but when I login to the frontend I get

"The requested URL /index.php was not found on this server"
Apache/2.2.3 (CentOS) Server at sunrisebconline.com Port 443

as the site uses "https:" on login so I think we need some more lines in the .htaccess allow a login to find site pages in the joomla1.5 folder since it's not in public_html?

We tired this but to no avail:
RewriteCond %{SERVER_PORT} ^80$

Any help would be appreciated!
dkc

dynamicnet
Joomla! Guru
Joomla! Guru
Posts: 577
Joined: Wed Aug 05, 2009 1:42 pm

Re: .htaccess help - Frontend login and https - page not found

Post by dynamicnet » Sat Nov 14, 2009 2:33 pm

Greetings:

Joomla can be installed in the HTML document root directory. While it can be installed in any subdirectory, it can also be installed in the root HTML directory.

What's your goal with the .htaccess file?

Thank you.
Peter M. Abraham
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Sat Nov 14, 2009 2:49 pm

Hello,

Dynamicnet's comments make sense- why install Joomla in a sub-directory and then use a rewrite to direct the url to it. Why not just install Joomla in the site root and not use the .htaccess at all for re-writing? This way you avoid all these problems all together.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

eosuser1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Nov 14, 2009 3:40 am

Re: .htaccess help - Frontend login and https - page not found

Post by eosuser1 » Sat Nov 14, 2009 4:39 pm

We would like have the site in the root directory but we created the entire site on a directory below (joomla1.5) and was not successful in moving it up as it appears you just cannot move the files up...we needed to rebuild?

We are to launch this tomorrow and were looking for a fast fix., that is why we used the .htaccess file to redirect.

Any easy way to move the site from our joomla1.5 folder to the public_html folder or a way to modify the .htaccess file to do what is needed?

Thanks,
dkc

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Sat Nov 14, 2009 4:49 pm

Generally there are no configuration changes necessary when you move the files. You should be able to drag and drop all the files and folders to the new location.

However, depending on how you did your install you may need to make a slight edit to the configuration.php file.

Check:
var $live_site = ''; - note this can be blank
var $log_path = '/logs'; - edit as needed although no change may be necessary
var $tmp_path = '/tmp'; - edit as needed although no change may be necessary
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

eosuser1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Nov 14, 2009 3:40 am

Re: .htaccess help - Frontend login and https - page not found

Post by eosuser1 » Sat Nov 14, 2009 5:04 pm

The current file is like this - we are on a web hosting site under the account sunri0

var $log_path = '/home/sunri0/public_html/joomla1.5/logs';
var $tmp_path = '/home/sunri0/public_html/joomla1.5/tmp';
var $live_site = 'http://www.sunrisebconline.com';

so move the joomla1.5 files up to public_html and change the config file to
var $log_path = '/home/sunri0/public_html/logs';
var $tmp_path = '/home/sunri0/public_html/tmp';
var $live_site = 'http://www.sunrisebconline.com';

sound like a winner?

of course we would need to put back the original .htaccess file without the redirects

Thanks,
dkc

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Sat Nov 14, 2009 5:24 pm

Looks like a winner...

Use the htaccess file from Joomla. It is name htaccess.txt
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

eosuser1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Nov 14, 2009 3:40 am

Re: .htaccess help - Frontend login and https - page not found

Post by eosuser1 » Sat Nov 14, 2009 5:57 pm

Thanks - I'll try it.

BTW - I would also need to replace the current root index.php with the one in my joomla1.5 folder as the root version has this

<?Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.sunrisebconline.com/joomla1.5/index.php" );?>

Take care,
dkc

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Sat Nov 14, 2009 6:18 pm

Yes, replace that index page with the Joomla index.php file
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

eosuser1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Nov 14, 2009 3:40 am

Re: .htaccess help - Frontend login and https - page not found

Post by eosuser1 » Sun Nov 15, 2009 2:53 am

CptDecker/all - thanks this worked except when I login to the front end using the default joomla 1.5 login module I get the error

https://sunrisebconline.com/index.php
Not Found
The requested URL /index.php was not found on this server.
Apache/2.2.3 (CentOS) Server at sunrisebconline.com Port 443

so using http is fine but https is not - is there some other setting/file I need to change?

Thanks again for taking time to help.
dkc

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Sun Nov 15, 2009 3:25 am

There is no other settings needed for SSL. This would be a configuration problem with the server.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

dynamicnet
Joomla! Guru
Joomla! Guru
Posts: 577
Joined: Wed Aug 05, 2009 1:42 pm

Re: .htaccess help - Frontend login and https - page not found

Post by dynamicnet » Sun Nov 15, 2009 12:44 pm

Greetings eosuser1:

Was there a reason for not installing Joomla into the root public HTML directory?

Thank you.
Peter M. Abraham
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.

eosuser1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Nov 14, 2009 3:40 am

Re: .htaccess help - Frontend login and https - page not found

Post by eosuser1 » Sun Nov 15, 2009 3:48 pm

no reason for the installing in a separate dir - our first attempt at using Joomal and it seemed to be a cleaner way of organizing the files

as for the issue of the site working with http and not https / front end login, the site host is saying

"For https to work, you must have an SSL cert installed on your account"

Which is fine we need to pay a bit more but what is confusing is https/login worked before we switched over from the test URL to the final URL...

We were on a test site http://nu.lunariffic.com/~sunri0/joomla1.5/ and then they switched us to the perm site http://sunrisebconline.com/ so I guess they had https set up for us during test and we did not know it or the person is not understanding our issue.

Anyway I do sincerely thank CptDecker an others for their help!
dkc

dynamicnet
Joomla! Guru
Joomla! Guru
Posts: 577
Joined: Wed Aug 05, 2009 1:42 pm

Re: .htaccess help - Frontend login and https - page not found

Post by dynamicnet » Sun Nov 15, 2009 5:57 pm

Greetings:

Digital ID's (SSL Certificate) are based on a given machine name unless you have a wild card digital ID which works for all machine names of one domain name.

Therefore, your provider may have had a wildcard digital ID for lunariffic.com; and that's why it worked.

They are correct that you would need one for sunrisebconline.com for it to work on your domain.

Please keep in mind that unless you get a wildcard digital ID, a digital ID for sunrisebconline.com (the domain name) is completely different for one for www.sunrisebconline.com (www machine name off the domain name of sunrisebconline.com) or mail.sunrisebconline.com (mail machine name off the domain name of sunrisebconline.com).

Thank you.
Peter M. Abraham
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Sun Nov 15, 2009 7:44 pm

Certificate or not, you should not get a 404 file not found error.

There is still something else wrong here.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

fogoneri
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Apr 21, 2007 3:10 am

Re: .htaccess help - Frontend login and https - page not found

Post by fogoneri » Mon Nov 16, 2009 6:23 am

Greetings to all,
may be the secure connection is still mapped to the original site, which by now is probably empty.
Without a certificate you probably should get a Failed secure connection warning in the browser.

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Mon Nov 16, 2009 12:45 pm

Hello fogoneri and welcome to the forum.

It is unlikely that the secure name is going to the old site. DNS does not know the difference between secure and not secure.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

fogoneri
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Apr 21, 2007 3:10 am

Re: .htaccess help - Frontend login and https - page not found

Post by fogoneri » Mon Nov 16, 2009 3:13 pm

Hi CptDecker,

I just went and checked.
I have got a Secure Connection Failure from FireFox:

-"sunrisebconline.com uses an invalid security certificate.

The certificate is not trusted because it is self signed.
The certificate is only valid for nu.lunariffic.com.

(Error code: sec_error_untrusted_issuer)...."

Probably the webhosting company is mapping to a shared secure space.

dynamicnet
Joomla! Guru
Joomla! Guru
Posts: 577
Joined: Wed Aug 05, 2009 1:42 pm

Re: .htaccess help - Frontend login and https - page not found

Post by dynamicnet » Mon Nov 16, 2009 3:53 pm

Greetings:

"(Error code: sec_error_untrusted_issuer)....""

This is on the provider's end. They may need to install the chain or another certificate file.

Thank you.
Peter M. Abraham
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Mon Nov 16, 2009 4:15 pm

That is OK if you get a certificate warning. You should. It is better than the other error.

Now you need to get with your web host. You will need a dedicated IP address and a signed SSL certificate in your sites name from GeoTrust or similar company. That will make the error go away and you will get the gold lock in your browser indicating a secure connection.

Best to deal directly with your host on this as there will be questions only they can answer in regards to what type of certificate you will need.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

User avatar
jgentile
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Tue Jan 01, 2008 3:41 pm
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by jgentile » Wed Dec 09, 2009 6:47 pm

Our small company has experienced the same problem this thread appears to address. Our joomla site is in a subfolder (http://oursite.com/site) because we have our company site running old html files in the public_html. When I try to use https:// for any joomla pages, I get browser error codes as if those pages are missing. "

BUT... when I use regular old http://joomla runs fine.

https DOES work for regular html files browsed to within our public_html folder. It is only when trying to use https for joomla files (all of which reside in a folder called /site) that I start getting errors. I've tried with SEF on, SEF off. I've tried changing stuff in configuration.php. I even unstalled sef404 component as well as a ACL component called Juga. I'm running plain old Joomla now. THe behavior is the same with 1.5.14 and 1.5.15.

We do have a propely installed CERT, and I do have a suspicion that it is a server configuration problem. We were hosted over on Liquidweb with the exact setup as above where Joomla ran in a subfolder ... and everything was peachy; https and all. We move to a new VPS and (got our cert reconfigured) and suddenly any time I use https... ON JOOMLA FILES... the pages stop showing up and I get error screens.

The hosting support guy said he threw an index.html file into the /site folder where Joomla is (which will take precedence over index.php) and that https immediately worked fine for the index.html file, so he concluded it was a problem with Joomla. (We pay for managed support so these guys are willing to help and don't try to run from problems).

I'm so frustrated. We need that https to protect users that order products on our site.

Why would Joomla run fine in a folder when https if off and then show up missing when https is on. And simultaniously https WORKS for regular html files in the root, but not for any Joomla pages

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Wed Dec 09, 2009 6:55 pm

Honestly, this is a server configuration issue. Try putting a text phpinfo() page up and access it using SSL. If you get the same error you can confirm for certain a server issue.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

User avatar
jgentile
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Tue Jan 01, 2008 3:41 pm
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by jgentile » Wed Dec 09, 2009 7:12 pm

AHA... thats why you have the stars by your name. https://oursite.com/info.php (called from public_html... forget the /site folder) drew the same error.

The crowds in the ampatheater applaud your suggestion!! Well done, well done. I feel like you deserve part of my paycheck for today.

I'll come back and post what we've discovered.

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not found

Post by CptDecker » Wed Dec 09, 2009 7:23 pm

LOL... glad to help.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html

seb_rosch
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 12, 2010 12:10 am

Re: .htaccess help - Frontend login and https - page not fou

Post by seb_rosch » Fri Dec 07, 2012 8:20 pm

Hello, I´m having some hard time trying to solve a problem so hope you can help me. I´m working in a site using remository because I need to give different upload and download access. The home page must be only the login screen, but when I try to login i get this:

404 Not Found
The server can not find the requested page:

www.ventasmeisa.com/personal/index.php (port 443)
Please forward this error screen to www.ventasmeisa.com's WebMaster.

Apache/1.3.42 Server at www.ventasmeisa.com Port 443

This joomla installation is in a subfolder because I wanted to setup everything and then transfer the files to the root folder, do you think that moving the files would do the trick?

Thanks guys.

User avatar
CptDecker
Joomla! Ace
Joomla! Ace
Posts: 1047
Joined: Mon Feb 27, 2006 3:00 am
Location: New York
Contact:

Re: .htaccess help - Frontend login and https - page not fou

Post by CptDecker » Fri Dec 07, 2012 9:47 pm

You should create a new thread for this question.
CptDecker

Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html


Locked

Return to “Installation 1.5”