• Hi all,

    I’m trying to create a 301 redirect from a directory ‘/fr/’ to ‘/fr/page.php’. When I’m typing ‘www.domain.com/fr/’ in my browser, it displays the index of all the files of the /fr/ directory, and I would like to avoid this.

    All the 301 redirects (webpages) are correctly working ‘/fr/page1.php’ to ‘/fr/page2.php’.

    Can anybody help me with that issue?

    Thanks,
    Ben

    https://www.ads-software.com/plugins/simple-301-redirects/

Viewing 1 replies (of 1 total)
  • Hi Ben,

    If all you want to do is prevent public access to your fr directory, you could try putting an index.php file in that folder, containing:

    <?php
    
    //Nothing else

    This usually prevents the display of files in the directory. Also, if it’s a “bad fix” you can just delete it afterwards.

    Warning: Make sure not to overwrite an existing index.php file. If you already have another one, make a copy of it. If this is the case, you might also need some other for disallowing access.

Viewing 1 replies (of 1 total)
  • The topic ‘directory/folder 301 direct failed’ is closed to new replies.