2008-04-22, 05:09 PM
اذا جرب التالى
كود :
RewriteEngine on
#RewriteBase /ms
RewriteCond %{HTTP_HOST} !^www.msat4u.com
RewriteRule (.*) http://www.msat4u.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^msat4u.com$
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)t-([0-9]+).html(.*)$ ms/showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)t-([0-9]+)-([0-9]+).html$ ms/showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)f-([0-9]+).html(.*)$ ms/forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)f-([0-9]+)-([0-9]+).html(.*)$ ms/forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ ms/forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
RewriteRule ^(.*)a-([0-9]+).html$ ms/announcements.php?aid=$2 [L]
RewriteRule ^(.*)thread-([0-9]+).html(.*)$ ms/showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)thread-([0-9]+)-page-([0-9]+).html$ ms/showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)forum-([0-9]+).html(.*)$ ms/forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)forum-([0-9]+)-page-([0-9]+).html(.*)$ ms/forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)forum-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-page-([0-9]+).html(.*)$ ms/forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
RewriteRule ^(.*)a-([0-9]+).html$ ms/announcements.php?aid=$2 [L]