# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
AuthName "Podaj haslo"
AuthType Basic
AuthUserFile ../.htpasswd
Require valid-user

# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#

#<IfModule mod_setenvif.c>
#  <IfDefine SSL>
#    SetEnvIf User-Agent ".*MSIE.*" \
#             nokeepalive ssl-unclean-shutdown \
#             downgrade-1.0 force-response-1.0
#  </IfDefine>
#</IfModule>

#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

Options -Indexes

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

Rewritecond %{HTTP_HOST} burley\.pl
RewriteRule (.*) http://www.bikeman.pl/produkty,2?seaProd=Burley [R=301,L]

#adres z WWW
#
#RewriteCond %{HTTP_HOST} ^bikeman.pl [NC,OR]
#RewriteCond %{HTTP_HOST} biala.bikeman.pl [NC,OR]
#RewriteCond %{HTTP_HOST} bikeman.com.pl [NC]
#RewriteRule ^(.*)$ http://www.bikeman.pl [R=301,L] 

#RewriteCond %{HTTP_HOST} bikeman.com.pl [NC]
#RewriteRule ^(.*)$ http://www.bikeman.pl [R=301,L] 

#P R Z E K I E R O W A N I A   Z E   S T A R Y C H   S T R O N
#
RewriteCond %{REQUEST_URI} products_id/(.*)$ [NC]
RewriteRule . /rewrite_address_products-id.php?productid=%1 [L]

RewriteCond %{REQUEST_URI} index.php/manufacturers_id/(.*)$ [NC,OR]
RewriteCond %{REQUEST_URI} marka/(.*)/\(offset\)/ [NC,OR]
RewriteCond %{REQUEST_URI} marka/(.*)$ [NC,OR]
RewriteCond %{REQUEST_URI} index.php/cPath/(.*)$ [NC,OR]
RewriteCond %{REQUEST_URI} sklep[a-z-]+/(.*)/[(a-z] [NC]
RewriteRule . /rewrite_address_cat-names.php?catname=%1 [L]

#P O Z O S T A L E
#
rewriteRule ^-$ / [L,R=301]
rewriteRule ^Informacje /dostawa-pm-3.html [L,R=301]
rewriteRule ^Nowosci /products_new.php [L,R=301]

rewriteRule Serwis-Info/Informacje-Firmowe/Program-wymiany-kaskow /newsdesk_info.php?newsPath=1&newsdesk_id=44 [L,R=301]
rewriteRule ^article_info.php/articles_id/18$ /newsdesk_info.php?newsPath=2&newsdesk_id=42 [L,R=301]
rewriteRule ^article_info.php/articles_id/29$ /newsdesk_info.php?newsdesk_id=65 [L,R=301]

RewriteCond %{REQUEST_URI} article_info.php/articles_id/1$ [NC,OR]
RewriteCond %{REQUEST_URI} Serwis-Info/Giant-Salony-Firmowe/Giant-Salon-Warszawa-Goclaw [NC]
RewriteRule . /info_pages.php?pages_id=9 [L,R=301]

RewriteCond %{REQUEST_URI} article_info.php/articles_id/2$ [NC,OR]
RewriteCond %{REQUEST_URI} Serwis-Info/Giant-Salony-Firmowe/Giant-Salon-Warszawa-Ursynow [NC]
RewriteRule . /info_pages.php?pages_id=10 [L,R=301]

RewriteCond %{REQUEST_URI} article_info.php/articles_id/3$ [NC,OR]
RewriteCond %{REQUEST_URI} Serwis-Info/Giant-Salony-Firmowe/Giant-Salon-Warszawa-Centrum [NC]
RewriteRule . /info_pages.php?pages_id=11 [L,R=301]

RewriteCond %{REQUEST_URI} Informacje-firmowe/Rosnij-z-Giant [NC,OR]
RewriteCond %{REQUEST_URI} Serwis-informacyjny/Rosnij-z-Giant [NC]
RewriteRule . newsdesk_info.php?newsPath=1&newsdesk_id=2 [L,R=301]

RewriteCond %{REQUEST_URI} Promocje$ [NC,OR]
RewriteCond %{REQUEST_URI} Promocje/\(offset\)/ [NC,OR]
RewriteCond %{REQUEST_URI} Bestsellery$ [NC,OR]
RewriteCond %{REQUEST_URI} Bestsellery/\(offset\)/ [NC]
RewriteRule . /specials.php [L,R=301]

RewriteCond %{REQUEST_URI} lampa-sigma-micro-r-micro-w-p-1150.html [NC]
RewriteRule . zestaw-oswietleniowy-sigma-micro-combo-p-1476.html [L,R=301]

RewriteCond %{REQUEST_URI} bell-m-3.html [NC]
RewriteRule . giro-m-2.html [L,R=301]

RewriteCond %{QUERY_STRING} SearchText=([^&;]*)
RewriteRule . /advanced_search_result.php?search_in_description=1&keywords=%1 [L,R=301] 

#SEO friendly
#
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+_[0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

#ErrorDocument 400 /index.php
#ErrorDocument 401 /index.php
#ErrorDocument 403 /index.php
#ErrorDocument 404 /index.php
#ErrorDocument 405 /index.php

