默认的joomla url 类似:/index.php/a/b/c/

在启用url rewrite后, 类似: /a/b/c/

nginx下的配置:

我使用的是lnmp.org提供的一键安装包,在创建virtual host的时候,会提示创建一个url rewrited配置,比如我的是:joomla25.conf

(参考:http://lnmp.org/install.html)

内容如下:

location / {
                try_files $uri $uri/ /index.php?q=$request_uri;
        }

 

之后,在Joomla后台启用:

1. Enable SEO in your administrator:
In Joomla 1.0: Site -> Global Configuration -> SEO: Search Engine Friendly URLs to Yes.
In Joomla 1.5: Site -> Global Configuration -> Site: Search Engine Friendly URLs to Yes, Use Apache mod_rewrite to Yes. (Setting Add suffix to URLs is optional).

我使用的joomla2.5 , 配置稍有不同

Global Configuration->SEO: Use URL rewriting 启用即可。

 

over. :)

 

  

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-08-29
  • 2022-12-23
  • 2021-10-18
  • 2021-07-05
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2022-03-03
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案