Recent Topics

1 Oct 19, 2008 05:35    

My b2evolution Version: 2.x

Strange problem: Nice permalinks like http://www.blog.com/2008/postname/ work well with the default blog but not with the other ones.

It works only under one condition with the other blogs:

- Use "absolute URL" in the URL-tab without www. But then it only works without the www in the URL. If I visit www.blog.com, I get the error message

b2evolution cannot resolve the requested URL.

Any ideas? Thanks!

I used the standard .htaccess

RewriteEngine On 

# Removed index.php in URLs 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^  index.php

EDIT: I solved it via stub files. Then it worked.

2 Oct 20, 2008 23:23

To use rewrite rules and .htaccess, you webserver need to be configured to read the .htaccess. You need a AllowOverride in your blog directory.

3 Oct 20, 2008 23:27

Thanks for your answer. What do you mean with "You need a AllowOverride in your blog directory"? Should I add this phrase in the .htaccess?

As I said rewriting works in the main blog directory and directories with stub files, but not on blogs that I create within b2evo without stubfiles

4 Oct 20, 2008 23:31

The .htaccess file in b2evo contains some rules about how apache should use mod_rewrite to create clean urls. But this file will not be interpreted if not told to do ;)

Looks like: either you don't have mod_rewrite enabled or apache is not 'seeing' your .htaccess.

Look at:

http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride

With mod_rewrite, you can get a really clean url like: http://mysite.com/myblog/mypost. With stubs, you will get urls like: http://mysite.com/mystub.php/mypost

5 Oct 20, 2008 23:37

mod_rewrite is enabled and as I said rewriting does work in some cases with clean urls as you mention http://mysite.com/myblog/mypost

I use mod_rewrite with other scripts as well


Form is loading...