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

PedroDug
Sun May 19 2024, 05:39 pm
JewelAmuck
Sun May 19 2024, 03:06 pm
Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am