htaccess - 重定向到joomla网页

时间:2014-10-16 10:57:46

标签: .htaccess

我知道这可能是一个非常简单的问题,但我没有管理它让它运作起来。

我有一个joomla应用程序,其中包含以下网址:http://www.nmo-online.com/news/final,我想将其指向http://www.nmo-online.com/client/frontend/app/final,但保留第一个网址。

所以我在我的服务器上放了一个.htaccess文件,位于根文件夹中,内容如下:

Options -Indexes
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} .*nmo-online.com$
RewriteRule ^news/final client/frontend/app/final [L]

重定向似乎有效,但我总是被重定向到主页http://www.nmo-online.com/weather

非常感谢任何帮助。

enne

编辑:这是完整的htaccess文件

Options -Indexes
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} .*nmo-online.com$
RewriteRule ^$ client/frontend/questionnaire/index.php [L]
RewriteRule ^weather client/frontend/app/weather [L]
RewriteRule ^news/final client/frontend/app/final [L]
RewriteRule ^flight/search-flight client/frontend/app/search-flight [L]

#Joomla backend
RewriteRule ^administrator client/frontend/app/administrator/ [L]

#Questionnaire backend
RewriteRule ^backend client/backend/index.php [L]

0 个答案:

没有答案