Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htacces


kristof de block

Recommended Posts

Hello

 

I make my .htacces file and if i would to login, the login screen still popups so if i want to work on my site i have to delete the .htacces file can somebody help me with this!

Below thats my .htacces file

 

AuthUserFile /www.rc-store.net/catalog/admin/.htpasswd

AuthType Basic

AuthName "admin"

Require valid-user

 

Greetings

Link to comment
Share on other sites

I don't understand the problem. You add the file and it blocks you. You then need to enter in the correct username/password. If you don't want to do that, then delete the file. You can't have it both ways.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I don't understand the problem. You add the file and it blocks you. You then need to enter in the correct username/password. If you don't want to do that, then delete the file. You can't have it both ways.

 

Jack

 

 

Yes when i input my username and password i don't get in my admin area! I place the username and pass in my admin folder also!

Link to comment
Share on other sites

Oh, then either you are missing the .htpasswd file or the path to it is incorrect. The one you are using, www.rc-store.net/catalog/admin/, looks wrong. Go to admin->tools->backup. The path is displayed there. Is it the same as yours?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Oh, then either you are missing the .htpasswd file or the path to it is incorrect. The one you are using, www.rc-store.net/catalog/admin/, looks wrong. Go to admin->tools->backup. The path is displayed there. Is it the same as yours?

 

Jack

 

 

I my backup disply this :/customers/rc-store.net/rc-store.net/httpd.www/catalog/admin/backups/

 

Greetings

Link to comment
Share on other sites

Then the path to the htpasswd file is

/customers/rc-store.net/rc-store.net/httpd.www/catalog/admin/.htpasswd

, assuming that is whre it is.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Then the path to the htpasswd file is
/customers/rc-store.net/rc-store.net/httpd.www/catalog/admin/.htpasswd

, assuming that is whre it is.

 

Jack

 

 

 

Hi Jack,

 

I face the same problem too..

 

My backup says...

 

Backup Directory: /home2/sub007/sc11011/store/admin/backups/

 

So, my .htpassword should be: /home2/sub007/sc11011/store/admin/.htpasswd

 

Is that right??

 

But I cant login to my own user account still...

 

Help!!

 

Regards

NaiLin

Link to comment
Share on other sites

That's correct if the .htpasswd file is in that location. Most hosts store them above the public_html directory for added security.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hey Jack!!

 

Its workS!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~

 

Hahah!! I am so excited!!~~ Becos I had been meddling with it since the 1st day i downloaded OsCommerce!! Finally, i can be relieved that no ones is gonna bother my admin folder!!

 

Thanks a million!!!

 

:D

NaiLin

Link to comment
Share on other sites

Hi Jack,

 

Some further questions..

 

Do i need to protect all my other PHP files???? Eg.. column_right.php and etc.. If i am not wrong, anyone with access to the php files can edit my website.

 

Or it is adequate with the recommended protection from the OsCommerce's documentation??? Which is the 2 Configure.php files, admin and .htpasswd...

 

Regards

NaiLin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...