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

    localhost - wampserver :: non tutti i “RewriteRule” funzionano (???)

    In wampserver2.4 in localhost - C:wamp/www/ Ho messo un mio sito (cartella nome: EXAMPLE) con il file .htaccess


    tutti i settaggi sono OK e .htaccess viene letto e funziona ...
    ma non tutte le istruzioni ... Es.

    1) La prima istruzione lavora OK (quindi htaccess funziona)

    # Index.html redirects
    RewriteEngine on
    RewriteBase /
    RewriteRule ^index\.html$ EXAMPLE/$1 [R,L]

    2) Ma la seconda non lavora ...

    # Open the page either .html or without .html
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html -f
    RewriteRule ^([^/]+)/$ $1.html


    Il mio problema è quando lavoro in locale, perchè sul sito le istruzioni funzionano perfettamente
    Grazie

  2. #2
    I found the problem, thanks for everything

Tag per questa discussione

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.