Quote:
Originally Posted by Rouzbeh1
hi Andrew,
thanks for the update 
i have tested the new version, but it seems not to be able to seo category names correctly
example:
catid:13
catname: Some Name
seo name (output): c-Some Name-13
which should be: c-some-name-13 (no CAPS and - instead of space)
and for some reason i couldn't get it to work.
thanks a lot again
|
Sorry, I'd missed the capitals and spaces. Here's a modified version of includes/local_links_include.php
If you set seo_friendly to 2, you need a different set of mod_rewrite rules. These are the ones I am using as test. If you also set seo_title, then you need to replace local_links in the first part of each rule by your seo_title:
Code:
RewriteRule (.*)local_links/links/c-[^/]+-([0-9]+)$ $1local_links.php?catid=$2 [R,L]
RewriteRule (.*)local_links/links/c-[^/]+-([0-9]+)/([0-9]+)$ $1local_links.php?catid=$2&linkid=$3 [R,L]
RewriteRule (.*)local_links/jump/c-[^/]+-([0-9]+)/([0-9]+)$ $1local_links.php?action=jump&catid=$2&id=$3 [R,L]
RewriteRule (.*)local_links/play/c-[^/]+-([0-9]+)/([0-9]+)$ $1local_links.php?action=play&catid=$2&linkid=$3 [R,L]
RewriteRule (.*)local_links/links/c-[^/]+-([0-9]+)(\?page=[0-9]+)$ $1local_links.php?catid=$2&page=$3 [R,L]
RewriteRule (.*)local_links/play/c-[^/]+-([0-9]+)/([0-9]+)(\?page=[0-9]+)$ $1local_links.php?action=play&catid=$2&linkid=$3&page=$4 [R,L]