Control Panel
Login to Begin to Talk!





Click Here to Register!
Advertisements



Go Back   Site Sift Forums > Site-Sift > Mods

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-04-2007, 08:51 AM
yisou yisou is offline
Just Registered
 
Join Date: Jun 2007
Posts: 4
Default how to change myfunctions.ini

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.
  #2  
Old 06-07-2007, 12:59 PM
hdpinn's Avatar
hdpinn hdpinn is offline
PHP GURU
 
Join Date: May 2005
Posts: 281
Default

You'll need to edit myfunctions.ini.php about line 48:

PHP Code:
 $return $LINK_BASE $id '/' $keywords '/'


Change to your desired format. Possibly something like:
PHP Code:
 $return $LINK_BASE $keywords '_' $id '.html'


Also edit .htaccess line:

PHP Code:
 RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$[L,NC


Possibly something like:
PHP Code:
 RewriteRule ^.*_([0-9]+).htmlindex.php?go=subcat&id=$[L,NC


If there are any conflicts with the new format and other files existing on your website, you will need to account for them.

Last edited by hdpinn : 06-11-2007 at 03:31 PM.
  #3  
Old 06-08-2007, 02:38 AM
killermule killermule is offline
Clueless
 
Join Date: May 2007
Posts: 44
Default

This would be great if I could get it to work lol :P

When I change everything and upload it I go to category pages and it just comes up with a 404 error every time. I modified both files with the code u used... Help
  #4  
Old 06-11-2007, 03:30 PM
hdpinn's Avatar
hdpinn hdpinn is offline
PHP GURU
 
Join Date: May 2005
Posts: 281
Default

I cannot account for server/setup variations to be able to provide the exact code here. The above is a guide to help you get started, but you will probably need a little php/htaccess knowledge to be able to edit it to work for you.

One thing I just noticed is the mod for the htaccess is wrong, it should be

PHP Code:
 RewriteRule ^.*_([0-9]+).htmlindex.php?go=subcat&id=$[L,NC


maybe that will get you going. I will also edit the above code to reflect this change.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -7. The time now is 04:17 PM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site Sift Media, Inc.