Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
xiketuan
Newbie
Newbie



Joined: Nov 11, 2008
Posts: 18

PostPosted: Thu Jan 15, 2009 3:52 am Reply with quote

I have 1 modules music, have made and then rewrite but is not running. ôi bring this up because both filegoc admin switch rewrite help, Thanks
demo : www.tanhlinh.com/modules.php?name=Nvmusic
www.quocvo.com/news/uploads/index.rar
 
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 383

PostPosted: Thu Jan 15, 2009 7:18 am Reply with quote

What you are asking goes well beyond support, you may need to pay someone to do this for you.
The first thing you need to so though is list all the main links so a developer knows what links need tapping.
 
View user's profile Send private message
xiketuan
Newbie
Newbie



Joined: Nov 11, 2008
Posts: 18

PostPosted: Thu Jan 15, 2009 11:59 pm Reply with quote

Code:
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewalbum&amp;id=([0-9]*)&amp;play=1"',


Code:
'album-\\1-bai.html',


Code:
RewriteRule ^album-([0-9]*)-bai1.html modules.php?name=Nvmusic&op=viewalbum&id=$1&play=1 [L]


error :
album-68.html&play=1

fix help me.

Code:
#Music
RewriteRule ^cakhuc-([0-9]*).html modules.php?name=Nvmusic&op=playsong&id=$1 [L]
RewriteRule ^casi-([0-9]*).html modules.php?name=Nvmusic&op=singer&id=$1 [L]
RewriteRule ^casi-([0-9]*)-trang([0-9]*).html modules.php?name=Nvmusic&op=singer&id=$1&pagenum=$2 [L]
RewriteRule ^nhacsi-([0-9]*).html modules.php?name=Nvmusic&op=author&id=$1 [L]
RewriteRule ^nhacsi-([0-9]*)-trang([0-9]*).html modules.php?name=Nvmusic&op=author&id=$1&pagenum=$2 [L]
RewriteRule ^album-([0-9]*).html modules.php?name=Nvmusic&op=viewalbum&id=$1 [L]
RewriteRule ^album-([0-9]*)-trang([0-9]*).html modules.php?name=Nvmusic&op=viewalbum&id=$1&pagenum=$2 [L]
RewriteRule ^album-([0-9]*)-bai([0-9]*).html modules.php?name=Nvmusic&op=viewalbum&id=$1&play=$2 [L]
RewriteRule ^album-([0-9]*)-bai1.html modules.php?name=Nvmusic&op=viewalbum&id=$1&play=1 [L]
RewriteRule ^theloai.html modules.php?name=Nvmusic&op=cat [L]
RewriteRule ^theloai-([0-9]*).html modules.php?name=Nvmusic&op=viewcat&id=$1 [L]
RewriteRule ^theloai-([0-9]*)-trang([0-9]*).html modules.php?name=Nvmusic&op=viewcat&id=$1&pagenum=$2 [L]
RewriteRule ^baoloi-([0-9]*).html modules.php?name=Nvmusic&op=error&id=$1 [L]
RewriteRule ^tainhac-([0-9]*).html modules.php?name=Nvmusic&op=download&id=$1 [L]
RewriteRule ^camnhan-([0-9]*).html modules.php?name=Nvmusic&op=feeling&id=$1 [L]
RewriteRule ^goitang-([0-9]*).html modules.php?name=Nvmusic&op=friendsend&id=$1 [L]
RewriteRule ^amnhac-([a-zA-Z0-9]*)-trang([0-9]*).html modules.php?name=Nvmusic&op=$1&pagenum=$2 [L]
RewriteRule ^timkiem.html modules.php?name=Nvmusic&op=search [L]
RewriteRule ^timkiem-([a-zA-Z0-9]*)-m([a-zA-Z0-9]*)-trang([0-9]*).html modules.php?name=Nvmusic&op=search&query=$1&modname=$2&pagenum=$3 [L]
RewriteRule ^timkiem-([a-zA-Z0-9]*).html modules.php?name=Nvmusic&op=search&modname=5&query=$1 [L]
RewriteRule ^amnhac.html modules.php?name=Nvmusic [L]


Code:
$urlin = array(
'"(?<!/)modules.php\?name=Nvmusic&amp;op=playsong&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=singer&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=singer&amp;id=([0-9]*)&amp;pagenum=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=author&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=author&amp;id=([0-9]*)&amp;pagenum=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewalbum&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewalbum&amp;id=([0-9]*)&amp;pagenum=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewalbum&amp;id=([0-9]*)&amp;play=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewalbum&amp;id=([0-9]*)&amp;play=1"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=cat"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewcat&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=viewcat&amp;id=([0-9]*)&amp;pagenum=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=error&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=download&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=feeling&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=friendsend&amp;id=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=([0-9]*)&amp;pagenum=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=search"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=search&query=([a-zA-Z0-9]*)&amp;modname=([a-zA-Z0-9]*)&amp;pagenum=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=search&modname=5&query=([0-9]*)"',
'"(?<!/)modules.php\?name=Nvmusic&amp;op=Nvmusic"'
);
$urlout = array(
'cakhuc-\\1.html',
'casi-\\1.html',
'casi-\\1-trang\\2.html',
'nhacsi-\\1.html',
'nhacsi-\\1-trang\\2.html',
'album-\\1.html',
'album-\\1-trang\\2.html',
'album-\\1-bai\\2.html',
'album-\\1-bai\\1.html',
'theloai.html',
'theloai-\\1.html',
'theloai-\\1-trang\\2.html',
'baoloi-\\1.html',
'tainhac-\\1.html',
'camnhan-\\1.html',
'goitang-\\1.html',
'amnhac-\\1-trang\\2.html',
'timkiem.html',
'timkiem-\\1-\\2-trang\\3.html',
'timkiem-\\1.html',
'amnhac.html'
);
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1294

PostPosted: Fri Jan 16, 2009 10:42 am Reply with quote

The issue is not with your RewriteRule lines in the .htaccess. It is in the GT-*.php file.

You need to move the $urlin and $urlout lines you have shown, higher up in the array list. The reason is that the URL replacement function (actually just a PHP function) works in order from left to right in the array list (looks "top - down" in the file, I know). Therefore, if it has a shorter match ahead of the ones you posted, the first match "wins".
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch