Skocz do zawartości

virto

Użytkownicy
  • Zawartość

    4
  • Rejestracja

  • Ostatnio

Posty napisane przez virto


  1. Witam,

    mam dwa problemy,

    przenoszę skrypt oscommerce'a z serwera na swój localhost, gdy w katalogu ze skryptem jest plik .htaccess to strona się nie wyświetla pojawia się błąd 500 wystąpił wewnętrzny błąd serwera. A gdy wywalę .htaccess to strona się otwiera natomiast linki nie działają. Co stwarza ten problem i czemu tak się dzieje?

     

    Druga sprawa przenoszę cały skrypt na home.pl i przy próbie uruchomienia pojawia sie komunikat:

     

    Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

     

     

    Próbowałem dodawać do .htaccess przeróżne kombinacje w celu uruchomienia register_globals:

    php_flag register_globals on

    php_value register_globals on

    hp_flag register_globals 1

    Po wpisaniu tego razem i osobno nic się nie dziej, cały czas wyświetla się ten sam komunikat.

    Już głupieje co może być nie tak?

     

     

    	 
     # $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>
    
     # Ultimate SEO URLs BEGIN
     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-([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]+).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 ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
     # Ultimate SEO URLs END

×