网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > Web Directory
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 218.2.66.159
Old 2007-06-13, 11:38 AM
sunshine sunshine is offline
高级会员
 
Join Date: 2006-01-05
Posts: 368
sunshine 正向着好的方向发展
Default 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.
Reply With Quote
  #2   IP: 218.2.66.159
Old 2007-06-13, 11:40 AM
sunshine sunshine is offline
高级会员
 
Join Date: 2006-01-05
Posts: 368
sunshine 正向着好的方向发展
Default

You'll need to edit myfunctions.ini.php about line 48:
Code:
$return = $LINK_BASE . $id . '/' . $keywords . '/';
Change to your desired format. Possibly something like:
Code:
 $return = $LINK_BASE . $keywords . '_' . $id . '.html';
Also edit .htaccess line:
Code:
RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$1 [L,NC]
Possibly something like:
Code:
RewriteRule ^.*_([0-9]+).html$ index.php?go=subcat&id=$1 [L,NC]
Reply With Quote
  #3   IP: 222.184.115.77
Old 2007-08-17, 11:54 PM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default

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:
Quote:
$return = $LINK_BASE . $id . '/' . $keywords . '/';
Change to your desired format. Possibly something like:
Quote:
$return = $LINK_BASE . $keywords . '-' . $id . '.html';
Also edit .htaccess line:
Quote:
RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$1 [L,NC]
Possibly something like:
Quote:
RewriteRule ^.*-([0-9]+).html$ index.php?go=subcat&id=$1 [L,NC]

Last edited by topvip : 2007-08-17 at 11:56 PM
Reply With Quote
  #4   IP: 222.184.115.77
Old 2007-08-17, 11:58 PM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default

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
Quote:
$keywords = str_replace(' ','_',$keywords);
$keywords = eregi_replace("[_]+",'_',$keywords);
something like:
Quote:
$keywords = str_replace(' ','-',$keywords);
$keywords = eregi_replace("[_]+",'-',$keywords);
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:03 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.