jimlongo Posted October 14, 2012 Posted October 14, 2012 Hi, I have a 2.3.1 shop operating with htpasswd authentication on an account of my VPS. I am moving (copying) the files to another account on the same VPS. I've changed all the appropriate paths so everything works except for one thing, securing the admin (name changed) folder with .htpasswd authentication. I've tried any number of ways, delete the .htaccess and .htpasswd_oscommerce files from the admin directory, create a new admin in the Admin Tool, click the "protect with htaccess/htpasswd" box. But when I submit this I will now get a 404 error on any pages in the admin folder. I can't login. If I ftp to the folder I can see that the .htaccess file has the proper lines written to it. ##### OSCOMMERCE ADMIN PROTECTION - BEGIN ##### AuthType Basic AuthName "osCommerce Online Merchant Administration Tool" AuthUserFile /home/xyzaccount/public_html/register/backend/.htpasswd_oscommerce Require valid-user ##### OSCOMMERCE ADMIN PROTECTION - END ##### Also the .htpasswd_oscommerce file will have an entry written to it with the new user:password But the only way I will be allowed back in is to delete the code from the .htaccess file and try again. Any ideas. I've looked all through any other .htaccess files in the path. I've deleted any entries in the home/.htpasswd folder which might be confusing. The only difference I can note is that the working oscommerce installation is in a subdomain secured by SSL certificate and this installation is just currently in a folder without SSL. It's just a demo situation without accepting any payments so I don't want the expense of SSL yet. Thanks, jim
Praful Kamble Posted October 15, 2012 Posted October 15, 2012 @@jimlongo Going through your information you have mentioned password file path at /home/xyzaccount/public_html/register/backend/.htpasswd_oscommerce and you then said deleted any entries in the home/.htpasswd. First check path should be proper and also file name mentioned in path. Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
jimlongo Posted October 15, 2012 Author Posted October 15, 2012 Hi Praful, yes I'm sure that the path is correct and the filename. I've checked and rechecked it.
Praful Kamble Posted October 15, 2012 Posted October 15, 2012 @@jimlongo In .htaccess file you have .htpasswd_oscommerce password file define at path /home/xyzaccount/public_html/register/backend/.htpasswd_oscommerce and home/.htpasswd. where you deleted details. Please do try to place .htpasswd_oscommerce file at root level. Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
jimlongo Posted October 15, 2012 Author Posted October 15, 2012 Thank you. I've placed .htpasswd_oscommerce file in root .htpasswds directory. I've changed the .htaccess path to AuthUserFile /home/.htpasswds/.htpasswd_oscommerce I still get the same behaviour. The file register/backend/ cannot be found.
jimlongo Posted October 17, 2012 Author Posted October 17, 2012 Any other ideas? Seems pretty odd, doesn't it?
Praful Kamble Posted October 19, 2012 Posted October 19, 2012 @@jimlongo Just put .htpasswd_oscommerce at root instead in .htpasswds directory. Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
jimlongo Posted October 20, 2012 Author Posted October 20, 2012 @@Praful Kamble Thanks again, As you directed, I've placed .htpasswd_oscommerce file in root directory. I've changed the .htaccess path to AuthUserFile /home/.htpasswd_oscommerce I still get the same behaviour. The file register/backend/ cannot be found. Remove the Auth directives in .htaccess and I can enter without problem.
Praful Kamble Posted October 22, 2012 Posted October 22, 2012 @@jimlongo Please copy paste .htaccess code and mention where you placed .htpasswd file Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
jimlongo Posted October 24, 2012 Author Posted October 24, 2012 @@Praful Kamble I've tried 3 different ways. First as my previous working site, I place the .htpasswd_oscommerce file in public_html/register/backend/ and the .htaccess file would contain ##### OSCOMMERCE ADMIN PROTECTION - BEGIN ##### AuthType Basic AuthName "osCommerce Online Merchant Administration Tool" AuthUserFile /home/public_html/register/backend/.htpasswd_oscommerce Require valid-user ##### OSCOMMERCE ADMIN PROTECTION - END ##### Then, as I thought you were suggesting I tried to put the .htpasswd_oscommerce file in the root .htpasswds directory, and the .htacces file would then have been ##### OSCOMMERCE ADMIN PROTECTION - BEGIN ##### AuthType Basic AuthName "osCommerce Online Merchant Administration Tool" AuthUserFile /home/.htpasswds/.htpasswd_oscommerce Require valid-user ##### OSCOMMERCE ADMIN PROTECTION - END ##### Then as per your final instructions I put the .htpasswd_oscommerce file in the root directory, and the .htacces file was then edited to read ##### OSCOMMERCE ADMIN PROTECTION - BEGIN ##### AuthType Basic AuthName "osCommerce Online Merchant Administration Tool" AuthUserFile /home/.htpasswd_oscommerce Require valid-user ##### OSCOMMERCE ADMIN PROTECTION - END ##### In every case when I try to access /register/backend/ I get a 404 error the file /register/backend/ could not be found. If I remove the code from the /register/backend/.htaccess file the 404 error does not appear and I can log in. Thanks, jim
Praful Kamble Posted October 25, 2012 Posted October 25, 2012 @@jimlongo Place you .htpasswd_oscommerce file at /home/public_html/ location Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
jimlongo Posted October 25, 2012 Author Posted October 25, 2012 @@Praful Kamble put the file at /home/public_html/.htpasswd_oscommerce changed /home/public_html/register/backend/.htaccess to ##### OSCOMMERCE ADMIN PROTECTION - BEGIN ##### AuthType Basic AuthName "osCommerce Online Merchant Administration Tool" AuthUserFile /home/public_html/.htpasswd_oscommerce Require valid-user ##### OSCOMMERCE ADMIN PROTECTION - END ##### exact same result
jimlongo Posted November 12, 2012 Author Posted November 12, 2012 This is still confounding me. I've tried every combination discussed above to no avail. I'm contemplating reinstalling and then moving everything, but that seems like a lot of work to accomplish one thing that shouldn't be so difficult. Any other ideas to try before I do that. What really bothers me is i'm contemplating doing this again. Creating another shop. Am I going to be going through this every time. Any fail-proof ways to move an installation somewhere else? Thanks, jim
qbl123 Posted November 23, 2012 Posted November 23, 2012 Yes, I feel the same. Admin gives a nice red warning, but no straight answer on how to fix it. Also nothing in the doc files?
kathir604 Posted November 26, 2012 Posted November 26, 2012 Hi I have a site developed with oscommerce. www.andrejewelrycollection.com In this we changed the hosting server last week.. I found that now the internal pages are not working fine.. In this website we are using Php pages too.. These PHP pages are working fine.. But the oscommerce pages are not working fine.. While opening it shows not found error.. would u plz help me? Hi i have a site developed with oscommerce. www.andrejewelrycollection.com In this we changed the hosting server last week.. I found that now the internal pages are not working fine.. In this website we are using Php pages too.. These PHP pages are working fine.. But the oscommerce pages are not working fine.. While opening it shows not found error.. would u plz help me?
Praful Kamble Posted November 27, 2012 Posted November 27, 2012 @@kathir604 It seems you have problem with SEO urls. Do you made any changes to htaccess? Make seo urls off from admin and check. Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
kathir604 Posted November 27, 2012 Posted November 27, 2012 I dont have much skills in oscommerce.. Would u plz let me know how to do changes in htaccess... In this website, we are using some php pages too.. The php pages are working fine.. But the oscommerce pages only not found.. Please explain me in detail.. I would be very much thankful to you.. Please..
Recommended Posts
Archived
This topic is now archived and is closed to further replies.