We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1770
    • 7 Posts
    le problème se pose souvent, de savoir comment créer un htaccess sous windows.
    En effet, windows ne reconnait pas le point ’.’ comme premier caractère, et vous dit qu’un nom de fichier doit avoir... un nom.

    Donc, pour créer un htaccess, spécial MODx (puisque j’y suis wink ) ::

    Il suffit de créer un fichier creer_htaccess.php à la racine de modx (là où se trouve le ht.access), et d’incorporer ce code :

    [tt]<?

    $fp = fopen(".htaccess","a");

    $fp2 = fopen("ht.access","r");
    while (! feof($fp2))
    $line .= fgets($fp2,4096);
    fclose($fp2);

    fputs($fp,$line);
    fclose($fp);


    ?>[/tt]
    puis d’appeler le fichier (soit : http://.... /creer_htaccess.php

    A noter que ca marche pour n’importe quel htaccess, il suffira de modifier le nom dans ce fichier wink

    Anonymus.
      • 6726
      • 7,075 Posts
      Merci Anonymus, c’est vrai que c’est un problème récurrent que je perso je règle en gardant un .htaccess vide sur mon disque, dans lequel je copie-colle le contenu de ht.access par exemple... Un peu bricolé, ceci dit, par rapport à ta solution smiley

      J’en profite pour te souhaiter la bienvenue sur les forums de MODx !
      Honoré d’avoir un Hubmaster expérimenté ici laugh !!!
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 33337
        • 3,975 Posts
        Bienvenue à MODx Anonymus! Vous pouvez également le faire avec des htacess de CMD (message de sollicitation de DOS)

        C:\ren ht.access .htaccess

        ... et tous nos remerciements de solution de manuscrit

        respect,

        zi

        (auto translated with Google)
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 6726
          • 7,075 Posts
          Zi, that’s faster and I didn’t know this...

          While you’re here, Anonymus talked to me about a typo he made when creating his account here which ended up as Anonymums, wanted to know if he could change it... Could you fix it ? Thanks !
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id
            • 33337
            • 3,975 Posts
            He can PM to Admin (rthrash) stating about this mistake and request for change. smiley

            Thanks.

            zi
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 6726
              • 7,075 Posts
              Seems like Ryan corrected his user name smiley

              Thanks Zi !
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l&#39;outil id
                • 9426
                • 14 Posts
                Une autre façon est d’ouvrir ht.access sous notepad et de l’ "enregistrer sous ..." .htaccess (faites attention à ce que l’extention .txt ne se rajoute pas automatiquement)
                  http://insina.com - Etudier le chinois en Chine - Study chinese in China