Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default error page option


stirnpanzer

Recommended Posts

Posted

i have put some rewrites in my .htaccess and used the contribution

 

http://www.oscommerce.com/community/contributions,933

 

if i put an incorrect page in it keeps directiong me to "http://www.100webads.com/" a part of my hosting company....

 

any ideas what i'm doing wrong ???

 

 

Thanks

 

http://www.stirnpanzer.com

 

 

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

 

 

ErrorDocument 400 http_error.php?error_id=400

ErrorDocument 401 http_error.php?error_id=401

ErrorDocument 403 http_error.php?error_id=403

ErrorDocument 404 http_error.php?error_id=404

ErrorDocument 405 http_error.php?error_id=405

ErrorDocument 408 http_error.php?error_id=408

ErrorDocument 415 http_error.php?error_id=415

ErrorDocument 500 http_error.php?error_id=500

ErrorDocument 501 http_error.php?error_id=501

ErrorDocument 502 http_error.php?error_id=502

ErrorDocument 503 http_error.php?error_id=503

ErrorDocument 505 http_error.php?error_id=505

ErrorDocument 504 http_error.php?error_id=504

 

#Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

Archived

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

×
×
  • Create New...