Witam korzystam z pewnego systemu newsów w którym mam zainstalowany mod rewrite - zmieniający linki.
Chcę aby w dwóch różnych plikach były wyświetlane dane odnoszące newsy do kolejnych 2 różnych plików. I tu stoi problem jest to w jednym folderze i jest tylko jeden plik .htaccess. Wiem, że nie mogę utworzyć drugiego o innej nazwie bo nie będzie działał.
Jak połączyć 2 takie pliki aby się nie gryzły ?
Oto pierwszy
RewriteEngine On
RewriteBase /
RewriteRule ^gt/(.*).html(.*)$ gt.php?subaction=showfull&url=$1$2 [L,NC]
RewriteRule ^postpage/(.*).html(.*)$ http://www.mojastrona.pl/koment.php?start_from=$1$2[L,NC]
RewriteRule ^comments/(.*).html(.*)$ gt.php?subaction=showcomments&url=$1$2 [L,NC]
RewriteRule ^commentspage/(.*)/(.*).html(.*)$ gt.php?comm_start_from=$1&subaction=showcomments&url=$2$3 [L,NC]
RewriteRule ^archiveindex/(.*).html(.*)$ gt.php?archive=$1&subaction=list-archive$2 [L,NC]
RewriteRule ^archive/(.*).html(.*)$ gt.php?subaction=showfull&url=$1$2 [L,NC]
RewriteRule ^archivepage/(.*)/(.*).html(.*)$ gt.php?start_from=$2&archive=$1&subaction=list-archive$3 [L,NC]
I oto drugi
RewriteEngine On
RewriteBase /
RewriteRule ^post/(.*)/(.*)-(.*).html(.*)$ xxx.php?subaction=showfull&id=$3&url=$2$4 [L,NC]
RewriteRule ^comments/(.*)/(.*)-(.*).html(.*)$ xxx.php?subaction=showcomments&id=$3&url=$2$4 [L,NC]
RewriteRule ^commentspage/(.*)/(.*)/(.*)-(.*).html(.*)$ xxx.php?comm_start_from=$1&subaction=showcomments&id=$4&url=$3$5 [L,NC]
RewriteRule ^archiveindex/(.*).html(.*)$ xxx.php?archive=$1&subaction=list-archive$2 [L,NC]
RewriteRule ^archive/(.*).html(.*)$ xxx.php?subaction=showfull&url=$1$2 [L,NC]
RewriteRule ^archivepage/(.*)/(.*).html(.*)$ xxx.php?start_from=$2&archive=$1&subaction=list-archive$3 [L,NC]
Jak je połączyć ??