Recent Topics

1 Jun 09, 2009 18:39    

I dont know if this is a bug or not...

When I access these URLs:
[list=1]

  • http://www.laibcoms.asia/ - it is rewritten as http://laibcoms.asia

  • http://www.laibcoms.asia/blog (with or without a trailing slash) - it is rewritten as http://laibcoms.asia/blog/

  • http://www.laibcoms.asia/blog/labox - fails

  • http://www.laibcoms.asia/blog/labox/ - fails

  • http://www.laibcoms.asia/blog/labox/technology5/ubuntu-jaunty-jackalope-is-out-in-the-wild - gets rewritten as http://laibcoms.asia/blog/labox/technology5/ubuntu-jaunty-jackalope-is-out-in-the-wild

  • [/list:o]

    Items #3 and #4 shouldn't fail at all since the .htaccess clearly works as proven by Item #5. But for some weird reason, it does fail.

    It doesn't end there however, the two URLs above that failed works in another b2evolution installation. Following the same format:
    [list]

  • http://www.gameshogun.ws/salon - rewritten as http://gameshogun.ws/salon/

  • http://www.gameshogun.ws/salon/ - rewritten as http://gameshogun.ws/salon/

  • [/list:u]

    What checks did I do?
    [list]

  • Backoffice settings - all are identical especially URL settings

  • /conf/ settings - all are identical (except of course the URL and DB/password stuff)

  • .htaccess - identical as well

  • [/list:u]

    The differences between the two:
    [list]

  • laibcoms.asia/blog/ - runs on 3.2.0 CVS June 3, 2009

  • gameshogun.ws - runs on 3.1.0 CVS May 13, 2009

  • b2evolution in laibcoms.asia is under a sub-folder

  • b2evolution in gameshogun.ws is in the domain root itself

  • [/list:u]

    That's why I do not know if this is a bug, since the .htaccess works fine as intended, and the same setup works in another b2evo installation.

    Anyone have ideas? Anything I missed?

    tnx. tnx.

    2 Jun 09, 2009 18:42

    My .htaccess

    
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /blog/
    
    # Remove www prefix - non-hardcode
    RewriteCond %{HTTP_HOST} ^www\.([^.]+\.[a-z]{2,6})$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    
    # DEFAULT DOCUMENT TO DISPLAY:
    # this will select the default blog template to be displayed
    # if the URL is just .../blogs/
    <IfModule mod_dir.c>
    	DirectoryIndex index.php index.html
    </IfModule>
    
    # CATCH EVERYTHING INTO B2EVO:
    # The following will allow you to have URL right off the site root,
    # using index.php as a stub but not showing it.
    # This will add support for URLs like:  http://example.com/2006/08/29/post-title
    # Redirect anything that's not an existing directory or file to index.php
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php
    


    Form is loading...