Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Photoplog issue

  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default Photoplog issue

    I followed the integration guide (added to the htaccess file) for my photoplog installation, but I can't get translations to work.

    The gallery is in /gallery, while the forum is in /forums, so it's outside the forum directory. Anything else I need to do to get it to work?

  2. #2
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Photoplog htaccess:

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING} [L]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    Root htaccess:

    Code:
    Options All -Indexes
    Options +FollowSymLinks
    
    ErrorDocument 404 http://www.pentaxforums.com/404.php
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,L]
    
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{Script_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?a=$1 [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)/$ index.php?language=$1&vbet_outside=true [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)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]

  3. #3
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    You didn't fallow instructions exactly. Instructions says that before rule cannot be any other rules ending with [L] and in such case [L] have to be removed. You have it in rule for vbseo, so vBET rule never takes place (L means last).

    Please try this:
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [QSA]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING} [L]
    This isn't exactly how it should be according to instructions. And it was not tested (only you can test it) - so please make copy before changes. If it will not work please try this:
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING}
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    This one is according to instructions, but because of vbseo before I think that you should go first with first proposition.

  4. #4
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    gallery/pl/ is still 404ing, while /gallery/?language=pl isn't redirecting properly

  5. #5
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Any ideas? I'd really like to get this to work. With all the other vBET bugs resolved, getting this to work would just be perfect!

    To recap:

    The forums are in ./forums
    The photoplog installation is at ./gallery

    My .htaccess files are posted in the first posts; your suggestions didn't work

  6. #6
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    I'm just checking it - will answer you soon

  7. #7
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by moman View Post
    gallery/pl/ is still 404ing, while /gallery/?language=pl isn't redirecting properly
    How did you got gallery/pl/ address? Is it generated by vBET? It should be /pl/gallery
    Please give me exact URL which is under one of vBET flags.

  8. #8
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Oops- I meant /pl/gallery/.

    I guess that this might be caused by some of the homepage rewrite rules. Take a close look at the root htaccess, and see if it maybe conflicts with what we want.

    Here's the url that should work: pl/gallery/ - Pentax News & Rumors - PentaxForums.com

  9. #9
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Perhups you have right. Please check this one for your main .htaccess
    Code:
    Options All -Indexes
    Options +FollowSymLinks
    
    ErrorDocument 404 http://www.pentaxforums.com/404.php
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,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)/$ index.php?language=$1&vbet_outside=true [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)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
    
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{Script_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?a=$1 [QSA]

  10. #10
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    I am making the edits now. Here are the old htaccess files

    Code:
    Options All -Indexes
    Options +FollowSymLinks
    
    ErrorDocument 404 http://www.pentaxforums.com/404.php
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,L]
    
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{Script_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?a=$1 [QSA]
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING} [L]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •