How to redirect in the first access another page instead of the index?

1

I think it's easier to understand like this: When I enter my domain:

  

www.site.com.br

Usually go to index.php

But I do not want it to go to index and yes to inicio.php

How would an htacess rule be for this?

    
asked by anonymous 17.07.2017 / 22:29

2 answers

2

Follow the example

DirectoryIndex inicio.php
    
17.07.2017 / 22:33
0

If you are using Apache, open the httpd.conf file and change the DirectoryIndex line to:

DirectoryIndex  inicio.html index.html index.htm

In this way, the default file Apache will look for will be start.html. If this file does not exist then it will look for a file named index.html (the default), and so on. If you do not find any files, you will list the contents of the directory if this is allowed.

    
02.07.2018 / 22:26