Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    problema con un file .htaccess

    salve ho questo file htaccess:

    codice:
    Options -Multiviews
    RewriteEngine On
    AddDefaultCharset utf-8
    
    RewriteRule ^home-page$ index.php [L]
    
    RewriteRule ^chi-siamo$ aboutus.php [L]
    RewriteRule ^about-us$ aboutus.php [L]
    RewriteRule ^wer-sind$ aboutus.php [L]
    RewriteRule ^qui-nous-sommes$ aboutus.php [L]
    RewriteRule ^quien-somos$ aboutus.php [L]
    RewriteRule ^o-hac$ aboutus.php [L]
    
    RewriteRule ^registrati$ register.php [L]
    RewriteRule ^recorded$ register.php [L]
    RewriteRule ^aufgezeichnet$ register.php [L]
    RewriteRule ^enregistré$ register.php [L]
    RewriteRule ^grabado$ register.php [L]
    RewriteRule ^записанный$ register.php [L]
    
    RewriteRule ^contatti$ contacts.php [L]
    RewriteRule ^contacts$ contacts.php [L]
    RewriteRule ^kontakte$ contacts.php [L]
    RewriteRule ^contacts$ contacts.php [L]
    RewriteRule ^contactos$ contacts.php [L]
    RewriteRule ^связи$ contacts.php [L]
    
    RewriteRule ^crediti$ contacts.php [L]
    RewriteRule ^credits$ contacts.php [L]
    RewriteRule ^kredite$ contacts.php [L]
    RewriteRule ^crédits$ contacts.php [L]
    RewriteRule ^créditos$ contacts.php [L]
    RewriteRule ^kредитов$ contacts.php [L]
    
    RewriteRule ^prodotti/([^/]+)/([^/]+)$ product.php?line=$1&category=$2 [L]
    RewriteRule ^products/([^/]+)/([^/]+)$ product.php?line=$1&category=$2 [L]
    RewriteRule ^produkte/([^/]+)/([^/]+)$ product.php?line=$1&category=$2 [L]
    RewriteRule ^produits/([^/]+)/([^/]+)$ product.php?line=$1&category=$2 [L]
    RewriteRule ^productos/([^/]+)/([^/]+)$ product.php?line=$1&category=$2 [L]
    RewriteRule ^продукты/([^/]+)/([^/]+)$ product.php?line=$1&category=$2 [L]
    
    RewriteRule ^prodotti/([^/]+)/([^/]+)/([^/]+)$ product.php?line=$1&category=$2&article=$3 [L]
    RewriteRule ^products/([^/]+)/([^/]+)/([^/]+)$ product.php?line=$1&category=$2&article=$3 [L]
    RewriteRule ^produkte/([^/]+)/([^/]+)/([^/]+)$ product.php?line=$1&category=$2&article=$3 [L]
    RewriteRule ^produits/([^/]+)/([^/]+)/([^/]+)$ product.php?line=$1&category=$2&article=$3 [L]
    RewriteRule ^productos/([^/]+)/([^/]+)/([^/]+)$ product.php?line=$1&category=$2&article=$3 [L]
    RewriteRule ^продукты/([^/]+)/([^/]+)/([^/]+)$ product.php?line=$1&category=$2&article=$3 [L]
    
    RewriteRule ^news/([^/]+)$ news.php?news=$1 [L]
    non capisco il preche tutto va bene tranne
    RewriteRule ^news/([^/]+)$ news.php?news=$1 [L]
    che mi da:
    Not Found

    The requested URL /awelco/news/automechanika was not found on this server

  2. #2
    Non sono sicuro, ho avuto un problema simile qualche settimana fa.

    Prova a rinominare il file news.php con qualcos'altro, per esempio news2.php e, di conseguenza, modificare la regola...

    codice:
    RewriteRule ^news/([^/]+)$ news2.php?news=$1 [L]
    Faranno fatica a credere, quelli che prendono le autorità per la verità, e non la verità come autorità.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.