Guest Posted June 29, 2007 Share Posted June 29, 2007 Homies, Very new to this, but spent hours trying to figure out how to ".htaccess" the /catalog/admin/ directory. Everything I tried in these formums failed. Finally I've come up with a solution. So here we go people. Step 1) Open the Catalog/admin/ folder in your "xampp" directory (Or the directory you installed Xampp) Step 2) Add the following Lines to the VERY end of your .htaccess file. AuthType Basic AuthName "OS Commerce Administration" AuthUserFile "C:\Program Files\xampp\security\xampp.users" require valid-user Example : # $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> AuthType Basic AuthName "OS Commerce Administration" AuthUserFile "C:\Program Files\xampp\security\xampp.users" require valid-user Step3) OPen a web browser and Type in http://yourlocalIP/catalog/admin Step4) Punch in the same username and password you use for XAMPP. ALL DONE!!! ***********If you do not know what I'm talking about, open the XAMPP control pannel, and click on the security option on the top left. Then click the link that appears something like this : http://localhost/security/xamppsecurity.php Take note of the user name, it's probably set by default to "root" enter in a new passowrd retype the password and click the "password changing" button In the following field (XAMPP DIRECTORY PROTECTION (.htaccess)), enter the username "root" (or whatever the "MYSQL" Username was that we found just before) and enter the same password you entered before in the "MYSQL" password text entry field. Link to comment Share on other sites More sharing options...
Guest Posted June 29, 2007 Share Posted June 29, 2007 If you're using Xampp on XP and your admin images won't load, copy the .htaccess. from your /catalog/admin directory into the images directory. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.