View Single Post
  #1  
Old 27th September 2009, 17:48
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default 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=$[L]
RewriteRule torrent_comment/action,([a-zA-Z?-??-?0-9]+)/ comment.php?action=$1
RewriteRule 
^([a-zA-Z?-??-?0-9]+)-$ comment.php?action=$[L]
RewriteRule edit/id,([0-9]+)/ edit.php?id=$1
RewriteRule 
^([0-9]+)-$ edit.php?id=$[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=$[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=$[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=$[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=$[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=$[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=$[NC,L]
RewriteRule ^([0-9]+)-$ browse.php?cat=$[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=$[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=$[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=$[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...
Reply With Quote
The Following 4 Users Say Thank You to kp380lv For This Useful Post:
d6bmg (7th June 2011), look (26th March 2012), Masterdan (24th October 2009), Phogo (30th September 2009)