Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

restrict access to top level of store with a passwd


hawanam

Recommended Posts

Hello,

I'm a "do it yourself" kind of guy. I've downloaded the OScommerce software, and was able to establish a store (on my own Appache server, and mySQL server). I want to modify the top level store such that when the user type my store name (e.g. "school_name.my_domain.com"), then I want to display a 'passwd' box. Once verified, I will then redirect the webpage to the default store front (e.g. '//localhost/mystore.php').

 

my problem is that I'm not successful in getting the redirection to work. The question I have: is there anyone who has done something similar? or if not, is there someone who can point me to code, documentation, and/or examples on such matter to.

 

(PS: in I looked in the PHP documentation, where they have an example, but could not get it to work).

 

Sincerely,

M. Hawana.

Link to comment
Share on other sites

Hello,

I'm a "do it yourself" kind of guy. I've downloaded the OScommerce software, and was able to establish a store (on my own Appache server, and mySQL server). I want to modify the top level store such that when the user type my store name (e.g. "school_name.my_domain.com"), then I want to display a 'passwd' box. Once verified, I will then redirect the webpage to the default store front (e.g. '//localhost/mystore.php').

 

my problem is that I'm not successful in getting the redirection to work. The question I have: is there anyone who has done something similar? or if not, is there someone who can point me to code, documentation, and/or examples on such matter to.

 

(PS: in I looked in the PHP documentation, where they have an example, but could not get it to work).

 

Sincerely,

M. Hawana.

Have you looked at Password protect entire store in the contributions area?

Link to comment
Share on other sites

.htaccess would probably do it is my guess. As for the redirection, you might have to use a javascript or php redirect. Usually your hosting control panel has a feature (wizard) to password protect areas of your website using .htaccess.

Link to comment
Share on other sites

The best option for this is .htaccess or do it thru password protect directory.

but then spiders will not get in.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Have you looked at Password protect entire store in the contributions area?

Leslie, thank you for the pointer. The web site gave me ideas on coding such a feature. It was not exacly what I was looking for, but was a good start.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...