简体   繁体   English

登陆页面作为主页

[英]Landing Page as home page

I know this may sound simple and over asked, but I searched and didn't found. 我知道这听起来可能很简单,而且要求过高,但是我进行了搜索,但没有找到。 I also asked on two other forums and they couldn't answer. 我也在其他两个论坛上提问,他们无法回答。

So here I go: 所以我在这里:

I have a joomla website (www.example.com) The home page is www.example.com/en, but I want to have a landing page directly on www.example.com. 我有一个joomla网站(www.example.com),主页是www.example.com/en,但是我想直接在www.example.com上有一个登录页面。 On this page will be a menu to redirect to the main site which is in 3 different languages (so a menu with 3 options). 在此页面上将提供一个菜单,用于重定向到使用3种不同语言的主站点(因此具有3个选项的菜单)。 I already have my html and css page for the landing page-menu ready. 我已经准备好登陆页面菜单的html和CSS页面。 I just need to know how to put it as the home page of my website. 我只需要知道如何将其作为我网站的主页即可。

I use GoDaddy, and there are many index.html, index.php, config.php, .htaccess, in the file manager. 我使用GoDaddy,文件管理器中有很多index.html,index.php,config.php,.htaccess。 Do I just put my html and css files along with my images in the root folder? 我是否只将html和CSS文件以及图像放在根文件夹中? Or do I also need to redirect some url somewhere? 还是我还需要将某些网址重定向到某个地方?

I hope I have been clear! 我希望我已经清楚了! Thanks! 谢谢!

You could set DirectoryIndex in your .htaccess file. 您可以在.htaccess文件中设置DirectoryIndex

DirectoryIndex intro.html index.php

This will make intro.html the default page that will be loaded and index.php as fallback. 这将使intro.html成为将要加载的默认页面,并使index.php作为后备。

Reference: DirectoryIndex Directive . 参考: DirectoryIndex指令

Hope this helps 希望这可以帮助

Prepare a landing page with the menu as u wish and name index.php/ index.html as your choice. 根据需要准备菜单,并选择index.php / index.html作为登录页面。 Replace the file on the server with this file. 用此文件替换服务器上的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM