Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Safe URLs "on" in Apache 2


drbill

Recommended Posts

Posted

OK... so maybe no one will car about this but me... but if you want "Safe URLs" on, and you have moved to Apache 2, be sure to add this line to your .htaccess file in your OSC root:

 

AcceptPathInfo On

 

Or, it won't work. Now it does, and life is good! <Grin!>

 

Took me a while to find it, so if anyone else is looking for it, there you go!

Posted

Opened the .hta access file, a few possible place to put it...not sure.

 

Could you kindly paste an example here?

 

Thanks,

 

Brad

Posted

Sure thing, here's mine:

-----------------------------

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

#

# General Directives Needed (Including Safe URL "AcceptPathInfo On")

DirectoryIndex index.php

AcceptPathInfo On

#

# 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>

 

# 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 0

</IfModule>

Archived

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

×
×
  • Create New...