Visualizzazione dei risultati da 1 a 2 su 2

Discussione: file .htaccess

  1. #1

    file .htaccess

    salve a tutti.

    Sto cercando di eseguire un file .htaccess per la modifica di un url:

    codice:
    RewriteEngine on
    RewriteRule ^page/contacts.php/$ page/contatti/ [L]
    quindi da page/contacts.php

    vorrei cambiarlo in

    page/contatti/

    è giusto????
    Perchè non funge lo sto provando su un hosting windows di aruba.

  2. #2
    ho fatto queste modifiche:

    codice:
    <Files ~ "^\.(htaccess|htpasswd)$">
    deny from all
    </Files>
    Options -Indexes
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(ideaofficegroup\.it/page/contacts\.php)(:80)? [NC]
    RewriteRule ^(.*) http://www.ideaofficegroup.it/page/contacts.php/$1 [R=301,L]
    Redirect permanent http://www.ideaofficegroup.it/page/contatti/ http://www.ideaofficegroup.it/page/contacts.php
    order deny,allow
    ma mi esce questa pagina di errore:
    Server Error in Application "IDEAOFFICEGROUP.IT"
    Internet Information Services 7.5
    Error Summary
    HTTP Error 404.0 - Not Found
    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
    Detailed Error Information
    Module IIS Web Core
    Notification MapRequestHandler
    Handler StaticFile
    Error Code 0x80070002
    Requested URL http://www.ideaofficegroup.it:80/page/contatti/
    Physical Path D:\Inetpub\webs\ideaofficegroupit\page\contatti\
    Logon Method Anonymous
    Logon User Anonymous
    Most likely causes:
    The directory or file specified does not exist on the Web server.
    The URL contains a typographical error.
    A custom filter or module, such as URLScan, restricts access to the file.
    Things you can try:
    Create the content on the Web server.
    Review the browser URL.
    Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
    Links and More Information
    This error means that the file or directory does not exist on the server. Create the file or directory and try the request again.
    View more information »

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 © 2024 vBulletin Solutions, Inc. All rights reserved.