PDA

View Full Version : Htaccess problem 8wayrunmedia



Santori
15-11-10, 17:23
Hello Michael!I follow using your mod and is genial!Have a problem since I have put a mod and now VBET does not work. If this subject does not go here, apologise.I have installed this mod8wayrun.com - Half Library - vbulletin.org Forum (http://www.vbulletin.org/forum/showthread.php?t=240677&highlight=media)With this mod have had to add code to the htaccess to work cathedral this mod, but Vbet does not work. The part of VBET has not touched . Only I have added new code up, think that there is something badly:This is my ht access:***********************************-## you Expire
<ifModule mod_expires.c>
ExpiresActive OnExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 3456000 seconds" ExpiresByType image/jpeg "access plus 3456000 seconds" ExpiresByType image/png "access plus 3456000 seconds" ExpiresByType text/css "access plus 3456000 seconds" ExpiresByType text/javascript "access plus 3456000 seconds" ExpiresByType application/javascript "access plus 3456000 seconds" ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>

# # Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
[AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascriptBrowserMatch ^ Mozilla/4 gzip-only-text/htmlBrowserMatch ^ Mozilla/4/.0[678] non-gzipBrowserMatch /bMSIE! no-gzip! gzip-only-text/html
</ifmodule>
</ifmodule>

# # Rewrite
<ifmodule mod_rewrite.c>
Do do do do RewriteEngine onOptions + FollowSymlinksRewriteCond % {REQUEST_FILENAME} - s [OR] RewriteCond % {REQUEST_FILENAME} - l [OR] RewriteCond % {REQUEST_FILENAME} - dRewriteRule ^. *$-[NC, L] # Media LibraryReWriteRule ^media/m(/d+).*/tags$ media.php? do = tags_edit & mid =$ 1 [QSA] ReWriteRule ^media/m(/d+).*/edit$ media.php? do = details_edit & mid =$ 1 [QSA] ReWriteRule ^media/m(/d+).*/report$ media.php? do = report & mid =$ 1 [QSA] ReWriteRule ^media/m(/d+).*/c(/d+)$ media.php? do = comment_edit & cmt =$ 2 [QSA] ReWriteRule ^media/m(/d+).*/p(/d+).*$ media.php? do = details & mid =$ 1 & pid =$ 2](Do (media.php? do = tag & tid =$ 1 [QSA] ReWriteRule ^ media/results/(.*) media.php? do = results & query =$ 1 [QSA] ReWriteRule ^ media/advresults/(.*) media.php? do = advresults & query =$ 1 [QSA]Do do do do do do do do do do (ReWriteRule_^media/letter/(.*) media.php? do = letter & query =$ 1 [QSA] ReWriteRule ^ media/browse.* media.php? do = browse [QSA] ReWriteRule ^ media/search.* media.php? do = search [QSA] ReWriteRule ^ media/random.* media.php? do = random [QSA] ReWriteRule ^ media/submit.* media.php? do = submit [QSA] ReWriteRule ^ media/tagcloud.* media.php? do = tagcloud [QSA] ReWriteRule ^ media/playlists.* media.php? do = playlists [QSA] ReWriteRule ^ media/pcreate.* media.php? do = playlists_create [QSA] ReWriteRule ^ media/pmine.* media.php? do = playlists_mine [QSA] ReWriteRule ^ media/favorites.* media.php? do = favorites [QSA] ReWriteRule ^ media/subscriptions.* media.php? do = subscriptions]Do do do do do [QSA] ReWriteRule ^media/admin/edit/s(/d+).* media.php? do = admin_host_edit & sid =$ 1 [QSA] ReWriteRule ^media/admin/delete/s(/d+).* media.php? do = admin_host_delete & sid =$ 1 [QSA] ReWriteRule ^media/admin/export/s(/d+).* media.php? do = admin_host_export & sid =$ 1 [QSA] ReWriteRule ^media/admin/(/w+).* media.php? do = admin_$ 1 [QSA] # Media Library from Video DirectoryRewriteCond % {QUERY_STRING} c = viewdetails & videoid =(/d+) RewriteRule ^ video / .php$ media.php?do=details&mid=%1RewriteCond % {QUERY_STRING} viewcategory & categoryid =(/d+) RewriteRule ^ video / .php$ media.php?do = categories & cid = % 1RewriteCond % {QUERY_STRING} viewuser & userid =(/d+) RewriteRule ^ video / .php$ media.php?do=user&uid=%1RewriteCond % {QUERY_STRING} viewtag & tag =(.*) RewriteRule ^ video / .php$ media.php?do=tag&tid=%1ReWriteRule ^ video / .php$ media.php # ForumRewriteRule ^ threads /. * showthread.php [QSA] RewriteRule ^ forums /. * forumdisplay.php [QSA] RewriteRule ^ blog /. * blog.php [QSA] ReWriteRule ^ entries /. * entry.php [QSA] RewriteCond % {REQUEST_FILENAME} - s [OR] RewriteCond % {REQUEST_FILENAME} - l [OR] RewriteCond % {REQUEST_FILENAME} - dRewriteRule ^. *$-[NC][, L] # MVCRewriteRule ^ (?: (.))*?)(?:/|do ($) (. * |$) $1.php? r =$ 2 [QSA]
</ifmodule>

# Comment the following line (add ' #' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites.RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove ' #' at the beginning to activate) # Please note: when enabled, you must include the path # to your root folder vB (i.e. RewriteBase/forums /) # RewriteBase / # RewriteCond % {HTTP_HOST}! ^www/.aquaterraria/.com#RewriteRule (. *) http://www.yourdomain.com/forums/$1 [L, R = 301] RewriteRule ^ ((urllist|sitemap_). * /. ())(do (xml|txt)(/.gz)?)do do$ vbseo_sitemap/vbseo_getsitemap.php? sitemap =$ 1 [L] RewriteRule ^ /?do (af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi) /$ vbenterprisetranslator_seo.php? vbet_lang =$ 1 & redirected = / [L, QSA] RewriteRule ^ /?do (af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi) /(.*)?$ vbenterprisetranslator_seo.php? vbet_lang =$ 1 & redirected = /$ 2 [L, QSA] RewriteCond % {REQUEST_URI}!(admincp/|modcp/|vbseo_sitemap/|cron)RewriteRule ^ ((archive/)? (.))((do (*/.php(/.*)?))$ vbenterprisetranslator_seo.php [L, QSA] RewriteCond % {REQUEST_FILENAME}!-fRewriteCond % {REQUEST_FILENAME}!-dRewriteCond % {REQUEST_FILENAME}! ^ (admincp|modcp|clientscript|cpstyles|images) /RewriteRule $ vbenterprisetranslator_seo.php [L, QSA] RewriteCond % {REQUEST_URI}!(|cron|vbseo_sitemap, |modcp, admincp)RewriteRule ^ ((archive/)? (.))((do (*/.php(/.*)?))$ vbseo.php [L, QSA] RewriteCond % {REQUEST_FILENAME}!-fRewriteCond % {REQUEST_FILENAME}!-dRewriteCond % {REQUEST_FILENAME}! / (admincp|modcp|clientscript|cpstyles|images) /RewriteRule ^(.+)$ vbseo.php [L, QSA] *-

mateuszr
17-11-10, 09:07
I suggest you to paste httaccess rules AFTER vBET rules and reply, is that working

Thread moved from 'Bug Reporting' to 'Integration' section

kamilkurczak
17-11-10, 10:44
which part of the file (the htaccess rules) is from this mod?

Santori
20-11-10, 00:33
Sorry, this is the original part vBET rules.

# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.aquaterraria\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
And this is the new part:

## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 3456000 seconds"
ExpiresByType image/jpeg "access plus 3456000 seconds"
ExpiresByType image/png "access plus 3456000 seconds"
ExpiresByType text/css "access plus 3456000 seconds"
ExpiresByType text/javascript "access plus 3456000 seconds"
ExpiresByType application/javascript "access plus 3456000 seconds"
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>

## Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>

## Rewrites
<ifmodule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# Media Library
ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
ReWriteRule ^media/browse.* media.php?do=browse [QSA]
ReWriteRule ^media/search.* media.php?do=search [QSA]
ReWriteRule ^media/random.* media.php?do=random [QSA]
ReWriteRule ^media/submit.* media.php?do=submit [QSA]
ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]

# Media Library from Video Directory
RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
RewriteRule ^video\.php$ media.php?do=details&mid=%1
RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
RewriteRule ^video\.php$ media.php?do=category&cid=%1
RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
RewriteRule ^video\.php$ media.php?do=user&uid=%1
RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
RewriteRule ^video\.php$ media.php?do=tag&tid=%1
ReWriteRule ^video\.php$ media.php

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
</ifmodule>

I tried to paste the new rules after the original, but does not work. If you can help, I appreciate it, if not, no problem. Regards

kamilkurczak
22-11-10, 08:08
ok, I will try to integrate it.

vBET
30-11-10, 14:29
Putting it after our rules will not work - our rules uses [L] - last rule. Please try to use those before vBET rules.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations made by vBET Translator 4.9.2beta