نخش على : .htaccess
نعدل
RewriteRule ^game/([0-9]+)/(.+)\.html$ file.php?f=$1&name=$2 [L]
RewriteRule ^category/([0-9]+)/(.+?)/([a-zA-Z]+)?/?([0-9]+)\.html$ browse.php?c=$1&p=$4&name=$2&order=$3 [L]
RewriteRule ^category/([0-9]+)/(.+)/?$ browse.php?c=$1&name=$2 [L]
الى :
RewriteRule ^games([0-9]+)\.html$ file.php?f=$1 [L]
RewriteRule ^category([0-9]+)/([a-zA-Z]+)?/?([0-9]+)\.html$ browse.php?c=$1&p=$3&order=$2 [L]
RewriteRule ^category([0-9]+)/?$ browse.php?c=$1 [L]
بعدها نعدل على : includes/URL.php
نعدل :
نعدل :
$title = str_replace($this->replace, $this->replacement, $title);
return $this->site_url .'/'. $this->file_url .'/'. $id .'/'. $title .'.html';
الى :
return $this->site_url .'/games'. $id .'.html';
نعدل :
$title = str_replace($this->replace, $this->replacement, $title);
return $this->site_url .'/'. $this->category_url .'/'. $id .'/'. $title . ($order === 'title' ? '': '/'. $order) .'/'. $page .'.html';
الى :
if ($page == 1 && $order == 'title') {
return $this->site_url .'/category'. $id .'/';
}
return $this->site_url .'/category'. $id .'/'. ($order === 'title' ? '': '/'. $order) .'/'. $page .'.html';
تم الانتهاء من الشرح ..
0 التعليقات لموضوع "تحويل روابط onarcade الى html"
الابتسامات الابتسامات