DBezemer/server/Kajam-11.4.0/alpha/web/.htaccess - Htaccess File

DBezemer/server/Kajam-11.4.0/alpha/web/.htaccess

# set caching for static files such as crossdomain.xml
<FilesMatch ".(xml|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresActive On
ExpiresDefault "access plus 3 month"
Header append Cache-Control "public"
SetEnv force-no-vary
Header unset ETag
FileETag None
</FilesMatch>

DirectoryIndex index.php
RedirectMatch permanent ^/index.php/searchmusicians$ /index.php/search?mode=KSHOW&keywords=music+bands+song+fan+scrapbook&category=2&or=t&promotion=1
RedirectMatch permanent ^/index.php/index.php/(.+?)$ /index.php/$1
RedirectMatch permanent ^/index.php/index/s/UT/I/(.+?)$ /index.php?s=UT&I=$1
RedirectMatch permanent ^/show/(.+?)/?$ /index.php/login/register?invite=1&goto=/index.php&s=UT&I=$1
RedirectMatch permanent ^/show/?$ /index.php/login/register?invite=1&goto=/index.php
RedirectMatch permanent ^/id/(.+?)/?$ /index.php/browse?kshow_id=$1
RewriteEngine on

# redirect kmc.kaltura.com to kaltura's kmc
RewriteCond %{HTTP_HOST} kmc.kaltura.com
RewriteRule .*  http://www.kaltura.com/index.php/kmc

# will redirect kaltura.com/kmc to www.kaltura.com/index.php/kmc
RewriteCond %{HTTP_HOST} ^kaltura.com$
RewriteRule .*  http://www.kaltura.com/index.php/kmc [L]

# redirect flash file with swfparams parameters to the bare flash file
RewriteRule ^(.*)/swfparams/(.*) /$1

RewriteRule ^p/[0-9]+/sp/[0-9]+/thumbnail/(.*)$ /index.php/extwidget/thumbnail/$1 [L]
RewriteRule ^p/[0-9]+/thumbnail/(.*)$ /index.php/extwidget/thumbnail/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/raw/(.*)$ /index.php/extwidget/raw/$1 [L]
RewriteRule ^p/[0-9]+/raw/(.*)$ /index.php/extwidget/raw/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/download/(.*)$ index.php/extwidget/download/$1 [L]
RewriteRule ^p/[0-9]+/download/(.*)$ index.php/extwidget/download/$1 [L]

# added Kaltura Screen Recorder Rewrite
RewriteRule ^p/[0-9]+/sp/[0-9]+/ksr/(.*)$ index.php/extwidget/ksr/$1 [L]
RewriteRule ^p/[0-9]+/ksr/(.*)$ index.php/extwidget/ksr/$1 [L]

RewriteRule ^index.php/downloadUrl(.*)$ /index.php/extwidget/downloadUrl/$1 [L]
RewriteRule ^downloadUrl(.*)$ /index.php/extwidget/downloadUrl/$1 [L]
RewriteRule ^entryPage(.*)$ /index.php/extwidget/entryPage/$1 [L]
RewriteRule ^userPage(.*)$ /index.php/extwidget/userPage/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^p/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]

RewriteRule ^s/p/[0-9]+/sp/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^s/p/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^s/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/flv/(.*)$ /index.php/flv/$1 [L]
RewriteRule ^p/[0-9]+/flv/(.*)$ /index.php/flv/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/kpreloader/(.*)$ /index.php/extwidget/kpreloader/$1 [L]
RewriteRule ^p/[0-9]+/kpreloader/(.*)$ /index.php/extwidget/kpreloader/$1 [L]
RewriteRule ^kpreloader/(.*)$ /index.php/extwidget/kpreloader/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/swf/(.*)$ /swf/$1 [L]
RewriteRule ^p/[0-9]+/swf/(.*)$ /swf/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/demos/(.*)$ /demos/$1 [L]
RewriteRule ^p/[0-9]+/demos/(.*)$ /demos/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/flash/(.*)$ /flash/$1 [L]
RewriteRule ^p/[0-9]+/flash/(.*)$ /flash/$1 [L]

RewriteRule ^kwidget/(.*)$ /index.php/extwidget/kwidget/$1 [L]
RewriteRule ^kcw/(.*)$ /index.php/extwidget/kcw/$1 [L]
RewriteRule ^kse/(.*)$ /index.php/extwidget/kse/$1 [L]
RewriteRule ^kae/(.*)$ /index.php/extwidget/kae/$1 [L]
RewriteRule ^kupload/(.*)$ /index.php/extwidget/kupload/$1 [L]
RewriteRule ^krecord/(.*)$ /index.php/extwidget/krecord/$1 [L]
RewriteRule ^kgeneric/(.*)$ /index.php/extwidget/kgeneric/$1 [L]

RewriteRule ^api/(.*)$ /index.php/partnerservices2/$1 [L]

RewriteRule ^p/[0-9]+/content/(.*)$ /content/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/content/(.*)$ /content/$1 [L]

RewriteRule ^extservices/(.*)$ /index.php/extservices/$1 [L]

# redirect collectstats to alive.html
RewriteRule ^(.*)/collectstats /alive.html [L]

RewriteRule ^tracker$ /tracker.php [L]

# rewrite rule for an errornous url from myspace - fetch a 1-pixel.gif
RewriteRule ^(.*)entry/widget/(.*) /images/blank_one_pixel.gif [L]

RewriteCond %{QUERY_STRING}  service=stats&action=collect
RewriteRule api_v3/index.php /alive.html [L]

On Github License

Files

Download PDF of Htaccess file
force-no-vary, HTTP_HOST, QUERY_STRING, static

Comments

Apache