OK, I *think* I have it figured out. I did this and so far things seem to work. Does this look right to you guys?
.htaccess (note the last bit, that needs to be changed to your URL if you use this code)
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^admin$ - [L]
RewriteRule ^admin/(.*) - [L]
RewriteRule ^install$ - [L]
RewriteRule ^install/(.*) - [L]
RewriteRule ^$ index.php
RewriteRule ^view/(.*)/(.*)/ view_video.php?id=$1 [L,QSA]
RewriteRule ^tag/(.*)/(.*) tag.php?search_id=$1&page=$2 [L,QSA]
RewriteRule ^channel/(.*)/(.*)/recent/(.*) video.php?category=recent&chid=$1&page=$3
RewriteRule ^channel/(.*)/(.*)/viewed/(.*) video.php?category=viewed&chid=$1&page=$3
RewriteRule ^channel/(.*)/(.*)/ channel_detail.php?id=$1
RewriteRule ^detailed/recent/(.*) video.php?category=recent&page=$1&viewtype=detailed
RewriteRule ^detailed/viewed/(.*) video.php?category=viewed&page=$1&viewtype=detailed
RewriteRule ^detailed/discussed/(.*) video.php?category=discussed&page=$1&viewtype=detailed
RewriteRule ^detailed/favorites/(.*) video.php?category=favorites&page=$1&viewtype=detailed
RewriteRule ^detailed/rated/(.*) video.php?category=rated&page=$1&viewtype=detailed
RewriteRule ^detailed/featured/(.*) video.php?category=featured&page=$1&viewtype=detailed
RewriteRule ^detailed/random/(.*) video.php?category=random&page=$1&viewtype=detailed
RewriteRule ^recent/(.*) video.php?category=recent&page=$1
RewriteRule ^viewed/(.*) video.php?category=viewed&page=$1
RewriteRule ^discussed/(.*) video.php?category=discussed&page=$1
RewriteRule ^favorites/(.*) video.php?category=favorites&page=$1
RewriteRule ^rated/(.*) video.php?category=rated&page=$1
RewriteRule ^featured/(.*) video.php?category=featured&page=$1
RewriteRule ^random/(.*) video.php?category=random&page=$1
RewriteRule ^rss/new/ rss.php?type=new [L]
RewriteRule ^rss/comments/ rss.php?type=comments [L]
RewriteRule ^rss/views/ rss.php?type=views [L]
RewriteRule ^group/(.*)/members/(.*) group_members.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/videos/(.*) group_videos.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/add/(.*) add_video.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/fav/(.*) add_favour.php?urlkey=$1&page=$2
RewriteRule ^group/(.*)/topic/(.*) group_posts.php?urlkey=$1&tid=$2
RewriteRule ^group/(.*)/invite/ invite_members.php?urlkey=$1 [L,QSA]
RewriteRule ^group/(.*)/ groups_home.php?urlkey=$1 [L,QSA]
RewriteRule ^groups/(.*)/(.*)/(.*) groups.php?chid=$1&page=$3
RewriteRule ^groups/(.*)/(.*) groups.php?category=$1&page=$2
RewriteRule ^include/(.*) http://www.vshare.in
RewriteRule ^pages/(.*).html$ show_page.php?name=$1 [QSA,L]
RewriteRule ^([^/\.]+)/favorites/(.*) user_favorites.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/playlist/(.*) playlist.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/friends/(.*) user_friends.php?username=$1&page=$2
RewriteRule ^([^/\.]+)/public/(.*)$ user_videos.php?username=$1&type=public&page=$2
RewriteRule ^([^/\.]+)/private/(.*)$ user_videos.php?username=$1&type=private&page=$2 [L,QSA]
RewriteRule ^([^/\.]+)/groups/(.*)$ user_groups.php?username=$1&page=$2 [L,QSA]
RewriteRule ^([^/\.]+)?/?$ user.php?username=$1 [L,QSA]
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURDOMAIN.COM(/)?.*$ [NC]
RewriteRule \.(flv|swf|png|bmp|js|css|jpg|jpe?g|gif)$ templates/images/logo.jpg [L,NC]
php.ini
Code:
upload_max_filesize = 100M
post_max_size = 100M
output_buffering = on
max_execution_time = 1000
max_input_time = 1000
session.gc_maxlifetime = 14400
max_execution_time = 6000000
max_input_time = 600000
output_buffering = On
Bookmarks