.htacces voor oscommerce

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Dennis

Dennis

06/02/2007 19:48:00
Quote Anchor link
Seach Engine Friendly URL in OsCommerce via .htaccess file

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
 
PHP hulp

PHP hulp

16/05/2024 14:30:05
 
Erik Rijk

Erik Rijk

06/02/2007 19:59:00
Quote Anchor link
Wat wil je precies dat we nu doen Dennis?
 
Dennis

Dennis

11/02/2007 14:45:00
Quote Anchor link
Hallo Erik

Is het mogelijk met het hierboven geplaatse script deze website www.ejennissen.nl te voorzien van google vriendelijke url`s.

Gr, Dennis
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.