.htacces voor oscommerce
Tevens optionele instellingen in admin gedeelte.
I will change the URLS from:
http://www.yoursite.com/product_info.php?cPath=1_4&products_id=1
to:
http://www.yoursite.com/Hardware/Graphics-Cards/Matrox-G200-MMS/
Ik heb de orginele .htacces maar krijg ze niet aan het draaien.
B.v.d Dennis
Hier de file
RewriteEngine on
RewriteBase /
# $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>
<IfModule mod_php5.c>
php_value session.use_trans_sid 0
php_value register_globals 1
</IfModule>
# -----> NIMMIT:SEF:B
#-----> single file no vars
RewriteRule ^([^/]*)\.html$ $1.php?%{QUERY_STRING} [NC]
#-----> one var
RewriteRule ^/?(product)/([^/]*)\.html$ product_info.php?products_id=$2&%{QUERY_STRING} [NC]
RewriteRule ^/?(category)/([^/]*)\.html$ index.php?cPath=$2&%{QUERY_STRING} [NC]
RewriteRule ^/?(brand)/([^/]*)\.html$ index.php?manufacturers_id=$2&%{QUERY_STRING} [NC]
#-----> two vars
RewriteRule ^/?(category)/(.*)/(product)/([^/]*)\.html$ product_info.php?cPath=$2&products_id=$4&%{QUERY_STRING} [NC]
RewriteRule ^/?(brand)/(.*)/(product)/([^/]*)\.html$ product_info.php?manufacturers_id=$2&products_id=$4&%{QUERY_STRING} [NC]
#-----> Reviews
RewriteRule ^/?(product_reviews_write|product_reviews|product_reviews_info)/product/([^/]*)\.html$ $1.php?products_id=$2&%{QUERY_STRING} [NC]
RewriteRule ^/?(product_reviews_write|product_reviews|product_reviews_info)/category/(.*)/product/([^/]*)\.html$ $1.php?cPath=$2&products_id=$3&%{QUERY_STRING} [NC]
RewriteRule ^/?(product_reviews_write|product_reviews|product_reviews_info)/brand/(.*)/product/([^/]*)\.html$ $1.php?manufacturers_id=$2&products_id=$3&%{QUERY_STRING} [NC]
#-----> products new
RewriteRule ^/?(products_new)/product/([^/]*)\.html$ $1.php?products_id=$2&%{QUERY_STRING} [NC]
# -----> NIMMIT:SEF:E
Gewijzigd op 01/01/1970 01:00:00 door Dennis
Wat wil je precies dat we nu doen Dennis?
Is het mogelijk met het hierboven geplaatse script deze website www.ejennissen.nl te voorzien van google vriendelijke url`s.
Gr, Dennis