Discussion in "E107 FURL Support" started by    kalamaku    Nov 13, 2007.
Tue Nov 13 2007, 07:50 pm
#1
Pleas help! I made this that way, but this doesn't work.

$patterns[41] = '/e107_plugins\/agenda\/agenda\.php/';
$replacements[41] = 'syndmused.html';

$patterns[42] = '/e107_plugins\/agenda\/agenda\.php\?viewitem.([0-9]+)\.([0-9]+)/';
$replacements[42] = 'syndmused-s.$1.$2.html';


# AGENDA ======================================
RewriteRule syndmused.html e107_plugins/agenda/agenda.php
RewriteRule syndmused-s([0-9]*)-([0-9]*)\.html(.*)$ e107_plugins/agenda/agenda.php?viewitem.$2.$1


[ Edited Tue Nov 13 2007, 08:42 pm ]
Tue Nov 13 2007, 08:46 pm
#2
Make the following changes in the php codes.. in both the files (e_module.php and sitelinks.sc)

$patterns[41] = '/e107_plugins\/agenda\/agenda\.php\?viewitem\.([0-9]+)\.([0-9]+)/';
$replacements[41] = 'syndmused-s$1-$2.html';

$patterns[42] = '/e107_plugins\/agenda\/agenda\.php/';
$replacements[42] = 'syndmused.html';


and htaccess code seems file to me.. try it if it still doesn't work... then please provide the website site link..


[ Edited Tue Nov 13 2007, 08:47 pm ]
Tue Nov 13 2007, 10:42 pm
#3
This works. Thank you!

Here is the final for Agenda.

.htaccess
# =============================================
# AGENDA ======================================
RewriteRule syndmused.html e107_plugins/agenda/agenda.php
RewriteRule syndmused-s([0-9]*)-([0-9]*)\.html(.*)$ e107_plugins/agenda/agenda.php?viewitem.$1.$2


e-module.php

$patterns[41] = '/e107_plugins\/agenda\/agenda\.php\?viewitem\.([0-9]+)\.([0-9]+)/';
$replacements[41] = 'syndmused-s$1-$2.html';

$patterns[42] = '/e107_plugins\/agenda\/agenda\.php/';
$replacements[42] = 'syndmused.html';


sitelinks.sc

$patterns[41] = '/e107_plugins\/agenda\/agenda\.php\?viewitem\.([0-9]+)\.([0-9]+)/';
$replacements[41] = 'syndmused-s$1-$2.html';

$patterns[42] = '/e107_plugins\/agenda\/agenda\.php/';
$replacements[42] = 'syndmused.html';


[ Edited Wed Nov 14 2007, 12:24 am ]
Tue Nov 13 2007, 11:16 pm
#4
But there is still problems with dropdown selections and next and previous links.

My site: http://test.ratsepp.pri.ee



Wed Nov 14 2007, 12:23 am
#5
that you need to edit manually..

login to admin area
then go to site links..
manually edit the links..

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am