hawanam Posted May 18, 2008 Posted May 18, 2008 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.
Guest Posted May 18, 2008 Posted May 18, 2008 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?
Guest Posted May 23, 2008 Posted May 23, 2008 .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.
satish Posted May 24, 2008 Posted May 24, 2008 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.
hawanam Posted May 25, 2008 Author Posted May 25, 2008 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.