.htaccess help - Frontend login and https - page not found
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.
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.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Nov 14, 2009 3:40 am
.htaccess help - Frontend login and https - page not found
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
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
-
- Joomla! Guru
- Posts: 577
- Joined: Wed Aug 05, 2009 1:42 pm
Re: .htaccess help - Frontend login and https - page not found
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.
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.
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.
- CptDecker
- 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
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.
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Nov 14, 2009 3:40 am
Re: .htaccess help - Frontend login and https - page not found
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
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
- CptDecker
- 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
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
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Nov 14, 2009 3:40 am
Re: .htaccess help - Frontend login and https - page not found
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
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
- CptDecker
- 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
Looks like a winner...
Use the htaccess file from Joomla. It is name htaccess.txt
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Nov 14, 2009 3:40 am
Re: .htaccess help - Frontend login and https - page not found
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
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
- CptDecker
- 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
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Nov 14, 2009 3:40 am
Re: .htaccess help - Frontend login and https - page not found
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
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
- CptDecker
- 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
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Guru
- Posts: 577
- Joined: Wed Aug 05, 2009 1:42 pm
Re: .htaccess help - Frontend login and https - page not found
Greetings eosuser1:
Was there a reason for not installing Joomla into the root public HTML directory?
Thank you.
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.
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Nov 14, 2009 3:40 am
Re: .htaccess help - Frontend login and https - page not found
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
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
-
- Joomla! Guru
- Posts: 577
- Joined: Wed Aug 05, 2009 1:42 pm
Re: .htaccess help - Frontend login and https - page not found
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.
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.
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.
- CptDecker
- 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
Certificate or not, you should not get a 404 file not found error.
There is still something else wrong here.
There is still something else wrong here.
CptDecker
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sat Apr 21, 2007 3:10 am
Re: .htaccess help - Frontend login and https - page not found
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.
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.
- CptDecker
- 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
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.
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sat Apr 21, 2007 3:10 am
Re: .htaccess help - Frontend login and https - page not found
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.
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.
-
- Joomla! Guru
- Posts: 577
- Joined: Wed Aug 05, 2009 1:42 pm
Re: .htaccess help - Frontend login and https - page not found
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.
"(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.
http://www.dynamicnet.net/ - Dynamic Net, Inc. - in business since June 1995; a PCI Compliant, managed hosting provider.
- CptDecker
- 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
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.
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
- jgentile
- Joomla! Apprentice
- Posts: 44
- Joined: Tue Jan 01, 2008 3:41 pm
- Contact:
Re: .htaccess help - Frontend login and https - page not found
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
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
- CptDecker
- 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
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
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
- jgentile
- Joomla! Apprentice
- Posts: 44
- Joined: Tue Jan 01, 2008 3:41 pm
- Contact:
Re: .htaccess help - Frontend login and https - page not found
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.
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.
- CptDecker
- 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
LOL... glad to help.
CptDecker
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Oct 12, 2010 12:10 am
Re: .htaccess help - Frontend login and https - page not fou
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.
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.
- CptDecker
- 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
You should create a new thread for this question.
CptDecker
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html
Total Hosting -- Professional Joomla Web Hosting
http://www.totalhosting.com/Web-Hosting/Joomla.html