WebSite X5Help Center

 
Gunnar H.
Gunnar H.
User

Circumnavigating the fixed home page  en

Autor: Gunnar H.
Visitado 1714, Followers 2, Compartido 0  

Hi

I wonder if it is possible to circumnavigating the fixed home page? I want to be able to set a specific page to be the entry page to my homepage, so I can change it according to what should be the main page, and not always the fixed home page.

Is this possible?

Publicado en
3 RESPUESTAS - 1 CORRECTO
Paul M.
Paul M.
Moderator

Hello Gunnar,

You can achieve this by adding a single line to your .htaccess file on the server (note that this file is on the server...  it has nothing to do with WebSite X5  -  you can ask your webhost to help you with this if necessary):

DirectoryIndex my_alternative_home_page.html

Obviously you will need to replace 'my_alternative_home_page.html' with the actual file name of the page you would like to use.

You can specify more than one page, so that if the first is unavailable for any reason then the second will be served, or the third, and so on:

DirectoryIndex firstpage.html secondpage.php thirdpage.html

You will need to clear your browser cache before testing.

Kind regards,

Paul

Leer más
Publicado en de Paul M.
Gunnar H.
Gunnar H.
User
Autor

Hi Paul

Thank you for the fast reply, that was what I was looking for, and I found the file :)

Though it would be nice to have some feature in Website X5, to outo redirect to the page of my choosing, but maybe that is not that easy to implement, since it hase something to do with a file on the server?

Regards

Gunnar

Leer más
Publicado en de Gunnar H.
Paul M.
Paul M.
Moderator

The thing is, Gunnar, that to achieve the same effect through WebSite X5 (or any other software for that matter) would involve a redirect, whereas doing it through the .htaccess file means that the correct page of your choice can be served directly.  It is more efficient in every way.

Best wishes...

Leer más
Publicado en de Paul M.