年年我发



返回   年年我发 > 网站建设 > 建站交流 > Web Directory
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 218.2.66.159
旧 2007-06-13, 11:38 AM
sunshine sunshine 当前离线
高级会员
 
注册日期: 2006-01-05
帖子: 387
精华: 0
现金: 4897 元
资产: 4897 元
声望: 10 sunshine 正向着好的方向发展
默认 how to change myfunctions.ini (site shift)

Hi, I want too let my site's url looks like abc_23.html, not 23/abc.html.

Please teach me how to change "include/myfunctions.ini" and ".htaccess"

Thanks in advance.
回复时引用此帖

wellcome to www.0058.net
  #2   IP: 218.2.66.159
旧 2007-06-13, 11:40 AM
sunshine sunshine 当前离线
高级会员
 
注册日期: 2006-01-05
帖子: 387
精华: 0
现金: 4897 元
资产: 4897 元
声望: 10 sunshine 正向着好的方向发展
默认

You'll need to edit myfunctions.ini.php about line 48:
代码:
$return = $LINK_BASE . $id . '/' . $keywords . '/';

Change to your desired format. Possibly something like:
代码:
$return = $LINK_BASE . $keywords . '_' . $id . '.html';

Also edit .htaccess line:
代码:
RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$1 [L,NC]

Possibly something like:
代码:
RewriteRule ^.*_([0-9]+).html$ index.php?go=subcat&id=$1 [L,NC]
回复时引用此帖
  #3   IP: 222.184.115.77
旧 2007-08-17, 11:54 PM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 611
精华: 11
现金: 4785 元
资产: 7233 元
声望: 10 topvip 正向着好的方向发展
默认

If you want to let my site's url looks like abc_cde-23.html, not 23/abc.html.

You'll need to edit myfunctions.ini.php about line 48:
引用:
$return = $LINK_BASE . $id . '/' . $keywords . '/';

Change to your desired format. Possibly something like:
引用:
$return = $LINK_BASE . $keywords . '-' . $id . '.html';

Also edit .htaccess line:
引用:
RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$1 [L,NC]

Possibly something like:
引用:
RewriteRule ^.*-([0-9]+).html$ index.php?go=subcat&id=$1 [L,NC]

此帖于 2007-08-17 11:56 PM 被 topvip 编辑.
回复时引用此帖
  #4   IP: 222.184.115.77
旧 2007-08-17, 11:58 PM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 611
精华: 11
现金: 4785 元
资产: 7233 元
声望: 10 topvip 正向着好的方向发展
默认

If you want to let my site's url looks like abc-cde-23.html, not 23/abc.html.

you also need to change:
at line 32 33
引用:
$keywords = str_replace(' ','_',$keywords);
$keywords = eregi_replace("[_]+",'_',$keywords);

something like:
引用:
$keywords = str_replace(' ','-',$keywords);
$keywords = eregi_replace("[_]+",'-',$keywords);
回复时引用此帖
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转

相似的主题
主题 主题作者 版面 回复 最后发表
From usd10 per Week to usd 800 per Week sunshine Google Adsense 0 2007-05-09 08:30 PM
Secret Out - How Google Ranks Websites smiling 搜索引擎市场营销研究 0 2006-05-14 06:51 PM
Successful Site in 12 Months with Google Alone sunshine 搜索引擎市场营销研究 0 2006-02-27 09:27 PM
Some of the best ways to get visitors to your site sunshine 搜索引擎市场营销研究 0 2006-02-26 04:05 PM
Building for the user and the bot. admin 建站交流 0 2006-01-17 03:54 PM


所有时间均为北京时间. 现在的时间是 07:14 PM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2008,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager