kp380lv |
27th September 2009 17:48 |
SEO - Optimization for Search Engine
Create an htaccess file and paste this in the file...
PHP Code:
Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteEngine On RewriteBase /
RewriteRule torrent/id,([0-9]+)/ details.php?id=$1 RewriteRule ^([0-9]+)-$ details.php?id=$1 [L] RewriteRule torrent_comment/action,([a-zA-Z?-??-?0-9]+)/ comment.php?action=$1 RewriteRule ^([a-zA-Z?-??-?0-9]+)-$ comment.php?action=$1 [L] RewriteRule edit/id,([0-9]+)/ edit.php?id=$1 RewriteRule ^([0-9]+)-$ edit.php?id=$1 [L] RewriteRule ^torrent_category/([a-zA-Z0-9_-]+)?$ browse [L] RewriteRule torrent_category/([0-9]+)/ browse.php?cat=$1 RewriteRule torrent/id,([0-9]+)&details/id,([0-9]+)/ details.php?id=$1&dllist=$2 RewriteRule ^([0-9]+)-$,([0-9]+)-$ details.php?id=$1&dllist=$2 [NC,L] RewriteRule torrent/id,([0-9]+)&snatched/id,([0-9]+)/ details.php?id=$1&snatched=$2 RewriteRule ^([0-9]+)-$,([0-9]+)-$ details.php?id=$1&snatched=$2 [NC,L] RewriteRule torrent/id,([0-9]+)&filelist/id,([0-9]+)/ details.php?id=$1&filelist=$2 RewriteRule ^([0-9]+)-$,([0-9]+)-$ details.php?id=$1&filelist=$2 [NC,L] RewriteRule torrent/id,([0-9]+)&page/id,([0-9]+)/ details.php?id=$1&page=$2 RewriteRule ^([0-9]+)-$,([0-9]+)-$ details.php?id=$1&page=$2 [NC,L] RewriteRule torrent/id,([0-9]+)&hit/id,([0-9]+)/ details.php?id=$1&hit=$2 RewriteRule ^([0-9]+)-$,([0-9]+)-$ details.php?id=$1&hit=$2 [NC,L] RewriteRule torrent/id,([0-9]+)&viewcomm/id,([0-9]+)/ details.php?id=$1&viewcomm=$2 RewriteRule ^([0-9]+)-$,([0-9]+)-$ details.php?id=$1&viewcomm=$2 [NC,L] RewriteRule ^([0-9]+)-$ browse.php?cat=$1 [NC,L] RewriteRule torrent_category/sort=([0-9]+)/type=([a-zA-Z?-??-?0-9]+)/ browse.php?sort=$1&type=$2 RewriteRule ^([0-9]+)-$,([a-zA-Z?-??-?0-9]+)-$ browse.php?sort=$1&type=$2 [NC,L] RewriteRule torrent_comment/([a-zA-Z?-??-?0-9]+)/([0-9]+)/ comment.php?action=$1&cid=$2 RewriteRule ^([a-zA-Z?-??-?0-9]+)-$,([0-9]+)-$ comment.php?action=$1&cid=$2 [NC,L] RewriteRule torrent_comment/([a-zA-Z?-??-?0-9]+)/([0-9]+)&sure=([0-9]+)/ comment.php?action=$1&cid=$2&sure=$3 RewriteRule ^([a-zA-Z?-??-?0-9]+)-$,([0-9]+)-$,([0-9]+)-$ comment.php?action=$1&cid=$2&sure=$3 [NC,L]
After that you should open your httpd.conf and enable 1. LoadModule rewrite_module modules/mod_rewrite.so and edit AllowOverride to AllowOverride All...
|