该问题已被锁定!
8
关注
6219
浏览

谁能贴一个WeCenter 3.0.2的伪静态规则?

AI智能回复搜索中,请稍后...

查看全部 4 个回答

openwebmail 初级会员 用户来自于: 江苏省苏州市
2015-01-06 10:02
我是使用 Linux 的, 我的配置如下: 修改配置文件: /etc/apache2/sites-available$ sudo vi 000-default.conf
	
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All #允许 rewrite
		Order allow,deny
		allow from all
	
执行 sudo a2enmod rewrite sudo service apache2 reload 在网站安装目前下新增文件: vi ./.htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
  
在网管理后台配置规则:
  /home/explore/===/explore/
/home/explore/(:any)===/explore/(:any)
/home/explore/category-(:num)===/category/(:num)
/account/login/===/login/
/account/logout/===/logout/
/account/setting/(:any)/===/setting/(:any)/
enjoy

关于作者

问题动态

发布时间
2015-01-06 09:42
更新时间
2015-01-29 15:17
关注人数
8 人关注

推荐内容

有没有人修改过移动版URL路由?求和pc版匹配规则
开了伪静态现在登陆不了了
lnmp 伪静态 404
anwsion在子目录下如何写伪静态呢?
2.0 为什么URL总带 /?/ 可否去掉?具体方法?
急求伪静态教程!!请前辈帮忙!!
阿里ace怎么开启伪静态啊?
/articles/可以换成别的名字吗?
iis 7.5 设置伪静态之后 访问任何地址多是显示发现页面【已经解决】
这个系统怎么生成html静态文件啊