一直困扰的问题,每次在本地做好的开启SEF的网站,上传到服务器上都出现样式丢失的情况,起初一直以为服务器提供商未开启Apache的重写模式:mod_rewrite,能过joomla网友给出的检测服务器是否开启rewrite办法证明,服务器提供商是开启了rewrite!

检测办法参考文章:http://www.webjx.com/web/cms-17918.html

----------------------------------

很多SEO方面的问题是由于主机没有开启Apache的mod_rewrite而造成的。他们(host方)时常会告诉你他们已经开启了(实际并没有), 但你可以自己核实mod_rewrite是否真的开启了,也可以自己检查是否由于mod_rewrite的问题而造成的500错误页面等。

下面我们来看如何查看mod-rewrite是否真的被开启:

  1. 通过Joomla管理员帐号登录管理后台,进入“全局设置(Global Configuration)”,在"Site"中将“Search Engine Friendly URLs”以及“Use Apache mod_rewrite”都设置为"Yes"。
  2. 将下面的代码写入htaccess.txt文件,并将该文件重命名为.htaccess.
    Options +FollowSymLinks
    Redirect /joomla.html http://www.joomla.org
  3. 在浏览器中打开http://www.example.com/joomla.html(将其中的www.example.com替换为你自己的域名)。

如果joomla的官方站点(joomla.org)被打开,则说明mod_rewrite已经开始并正常工作;如果出现错误则反之。

注意,如果你的站点路径为子域名,例如“test.example.com”,那么上面那段代码中相应的应该修改为:

Options +FollowSymLinks
Redirect /test/joomla.html http://www.joomla.org

-----------------------------------

检测结果证明,服务商是开启了rewrite

那么问题还是在于本站的配置!joomla官方论坛的一位网友给出的好方法
以下内容来自:http://forum.joomla.org/viewtopic.php?f=544&t=416316
名叫 的网友解答
======================
Wow, I had this same problem. Thanks for these posts. They made me realize that the RewriteBase / line was my problem. I discovered that if I removed the # before the RewriteBase / (uncommented the line), that fixed the problem.

So, my steps to fix were:

1. Open htaccess.txt.
2. Remove the # at the beginning of the RewriteBase / line.
3. Upload htaccess.txt to my web server.
4. Rename htaccess.txt to .htaccess

Hopefully these steps will help someon

======================
本站简译:
啊,我遇到同样的问题。谢谢诸位的讨论。 他们让我认识到了RewriteBase /line 是我的问题所在,我发现如果删除RewriteBase / 前面的#号,问题就迎刃而解。

那么,我的步骤如下:

1、打开网站根目录下的htaccess.txt
2、删除 RewriteBase /line 前面的#号
3、保存htaccess.txt并上传到网站服务器
4、重命名htaccess.txt为.htaccess

希望这些能帮助一些朋友

=======================

搞定
不过要开启joomla全局配置里面的三项SEF,包括“使用Apache的重写模式:mod_rewrite”

Options +FollowSymLinks
Redirect /joomla.html http://www.joomla.org
除特殊标明文章转自第三方网站,文章均由JOOMLASK.COM原创提供
欢迎友情转载,请务必保留本文出处并引用本文链接: 解决joomla SEF在服务器上无法运作(无样式,布局乱)