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 2 12 LastLast
Results 1 to 10 of 18

Thread: FAST CGI change breaks .htaccess for vbet outside rule

  1. #1
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default FAST CGI change breaks .htaccess for vbet outside rule

    WHen I switch to FCGI on my server (to allow xCache and speed it up) my rewite rulles all stop woorking.

    if i simply remove the

    Code:
    #This rule must be in each directory which have to be supported (without forum directory itself)
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    all my rules then work. so it appears somthing in this breaks the entire .htaccess with FCGI

    any ideas?

    thanks
    Chris

  2. #2
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Hi
    Could you please show me your all .htaccess?
    Last edited by r.dziadusz; 19-03-12 at 15:43.

  3. #3
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Code:
    <Files ~ "\.inc$">
       Order allow,deny
       Deny from all
       Satisfy All
    </Files>
    
    Header unset ETag
    FileETag None
    
     
    # 2 HOURS
    <FilesMatch "\.(html|htm|php)$">
    Header set Cache-Control "max-age=7200, must-revalidate"
    </FilesMatch>
    
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
    Header set Cache-Control "public"
    Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
    </FilesMatch>
    
    Options +FollowSymLinks
    
    RewriteEngine on 
    RewriteBase /
    
    
    RewriteRule [.]*play_casino([0-9]+) cportal/tclick.php?%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule [.]*play_banner([0-9]+) cportal/bclick.php?%{QUERY_STRING}&id=$1 [QSA]
    RewriteRule ^casino_guide/([a-z0-9-]+).html$ index.php?id=casino_guide/$1
    RewriteRule [.]*poker_guide/([a-z0-9-]+).html index.php?id=poker_guide/$1 [QSA]
    RewriteRule [.]*bingo_guide/([a-z0-9-]+).html index.php?id=bingo_guide/$1 [QSA]
    RewriteRule [.]*skill_guide/([a-z0-9-].+).html index.php?id=skill_guide/$1 [QSA]
    RewriteRule [.]*casino_guide/reviews([a-z0-9-]+) index.php?pageid=reviews [QSA]
    RewriteRule [.]*casino_guide/review-save([a-z0-9-]+) index.php?pageid=review-save [QSA]
    #RewriteRule ^/?([a-z0-9-]+)\.html index.php?id=$1 [QSA]
    RewriteRule ^([a-z0-9-]+)\.html$ index\.php?id=$1 
    RewriteRule [.]*casino-banks/([a-z0-9-]+) index.php?pageid=binfo&id=$1 [QSA]
    RewriteRule [.]*casino_review/([a-z0-9-]+) index.php?pageid=info2&id=$1 [QSA]
    RewriteRule [.]*poker_review/([a-z0-9-]+) index.php?pageid=info2&id=$1 [QSA]
    RewriteRule [.]*bingo_review/([a-z0-9-]+) index.php?pageid=info2&id=$1 [QSA]
    RewriteRule [.]*skill_review/([a-z0-9-]+) index.php?pageid=info2&id=$1 [QSA]
    RewriteRule [.]*casino-banking/([a-z0-9-]+).html index.php?id=casino-banking/$1 [QSA]
    RewriteRule [.]*afc_contests/([a-z]+).html index.php?pageid=$1 [QSA]
    
    
    
    #Those rules have to be in domain main folder
    #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)/(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)* http://www.allfreechips.com/Allfreechips [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)/$ 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]
    
    
    #This rule must be in each directory which have to be supported (without forum directory itself)
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

  4. #4
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Any thoughts? I havent found anything online that would say this will break, I did see referance that FCGI may have no values for SERVER_ENV fields but nothing that says this should happen!

  5. #5
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Few additiona questions:
    -do you use vbSEO?
    -if not do have your urls with /xx/ lang code?
    -is this page outside your forum directory?
    -culd you show me (screeenshot or url) broken url where .htaccess is not working?

  6. #6
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    -do you use vbSEO? - YES (no VBSEO rules though outside the forums directory
    -if not do have your urls with /xx/ lang code? I have all my urls with the /XX/ lang code
    -is this page outside your forum directory? - YES
    -culd you show me (screeenshot or url) broken url where .htaccess is not working - any page that requires a rewrite url fom that htaccess is a 404 page



    if I rem out the last two lines

    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

    everything works fine, or if I run php in suphp mode it is all OK.

  7. #7
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    -do you use vbSEO? - Yes but not rewrites outside of forums directory where this querrystring is
    -if not do have your urls with /xx/ lang code? - Yes all my pages are /XX/
    -is this page outside your forum directory? - Yes
    -culd you show me (screeenshot or url) broken url where .htaccess is not working? - Any page that requres the rewrite (all but the homepage and forums pages) will 404

    Quote Originally Posted by r.dziadusz View Post
    Few additiona questions:
    -do you use vbSEO?
    -if not do have your urls with /xx/ lang code?
    -is this page outside your forum directory?
    -culd you show me (screeenshot or url) broken url where .htaccess is not working?

  8. #8
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Ok
    I'm checking on it

  9. #9
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Can I just remove this completely and in my non forum pages simply add $vbet_outside=true

    As I use a single page to parse all non forum pages this would be simple.

  10. #10
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Can I just remove this completely and in my non forum pages simply add $vbet_outside=true

    As I use a single page to parse all non forum pages this would be simple.

Page 1 of 2 12 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
  •