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

ArktiTic
Sun May 05 2024, 07:06 pm
CesslasyNear
Sun May 05 2024, 02:58 pm
chimichmedic1204
Sun May 05 2024, 11:06 am
Jamiegob
Sun May 05 2024, 10:11 am
Gregoryjed
Sun May 05 2024, 10:02 am
Mariocax
Sun May 05 2024, 08:51 am
WilliamErync
Sun May 05 2024, 02:35 am
Danielnof
Sat May 04 2024, 11:12 pm