简体   繁体   English

Joomla主页未出现在根目录中

[英]Joomla home page not appearing in root

I've installed Joomla (running on Ubuntu 14.04) according to the default installation guidelines. 我已经根据默认安装指南安装了Joomla(在Ubuntu 14.04上运行)。 My problem is that now when I navigate to my domain (insertdomainhere.com) what shows up isn't my Joomla home, but the apache default page. 我的问题是,现在当我导航到我的域(insertdomainhere.com)时,显示的不是我的Joomla主页,而是apache默认页面。 At the moment I have to navigate to insertdomainhere.com/joomla to view my Joomla page. 目前,我必须导航到insertdomainhere.com/joomla才能查看我的Joomla页面。 What I'd like to do is set it so that when I navigate to insertdomainhere.com my Joomla page appears (as opposed to .com/joomla). 我想做的是设置它,以便当我导航到insertdomainhere.com时,出现我的Joomla页面(与.com / joomla相对)。 Any and all help is greatly appreciated. 任何帮助都将不胜感激。 Cheers, Ryan 干杯,瑞安

what shows up isn't my Joomla home, but the apache default page. 显示的不是我的Joomla主页,而是apache默认页面。

This is because you've uploaded Joomla! 这是因为您已经上传了Joomla! in /joomla and not in the default directory ( /var/www/html ). /joomla而不是在默认目录( /var/www/html )中。 This would result in Apache showing the default page. 这将导致Apache显示默认页面。

What I'd like to do is set it so that when I navigate to insertdomainhere.com my Joomla page appears (as opposed to .com/joomla). 我想做的是设置它,以便当我导航到insertdomainhere.com时,出现我的Joomla页面(与.com / joomla相对)。

You should move your Joomla! 您应该移动您的Joomla! installation to the root directory of your web server or put this in an .htaccess file in the root directory: 安装到Web服务器的根目录或将其放在根目录下的.htaccess文件中:

Redirect 301 / /joomla

您可以使用以下命令将根文件夹重定向到/ joomla /:

RedirectMatch ^/$ /joomla/

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

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