Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit configure.php or using mod_rewrite?


Micke

Recommended Posts

I have finished builing my osCommerce shop at http://example.com/catalog.

Now I have gotten myself a nice domain name (www.shopsname.com) pointing to that location.

Once the customer gets to www.shopname.com every internal link leads to a http://example.com/whatever-catalog-page.

That's not the way I want it so I first tried to edit configure.php. That works, but for some reason it kills the Autologon feature I want. Autologon forgets me for some reason...

So the host-support says "use mod_rewrite" but he can't tell me how.

I have tried for a couple of hours to edit the .htaccess -file in my catalog directory but I can't make it work...

 

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 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>

 

What lines do I have to add here?

Or does anyone know how to make autologon work with www.shopsname.com?

Link to comment
Share on other sites

That's not the way I want it

So how *do* you want it? You have installed your store in a subfolder (catalog) but it sounds like there are no references to this folder anywhere in your config files.....?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...