1 xangelusx Sep 11, 2006 16:49
3 xangelusx Nov 13, 2006 20:20
Just so we're clear, my understanding of htaccess only came after a full 12 hours of trial-and-error :) That said, I think you are forgetting to add "/blog/" to the beginning of the redirection, no?
RewriteRule ^([^/\?]+)(/?(.*))?$ /blog/%2.php$2 [L]
Also, in your B2evolution back office, check your blog settings - some of the blog URL parameter fields can be tricky. I've attached a screenshot of how my main blog is set up. You'll probably want to make sure your settings match. Then under the apps setting tab. make sure the Use Extra Path Info is checked (see second screenshot)
Hope this helps more than hurts. Be sure to backup your database and current htaccess file first, just in case I am completely and totally wrong.
4 xangelusx Nov 13, 2006 20:24
PS: the part that you copied from my htaccess file assumed that there was a stub file in the root of the website, i.e. http://www.mysite.com/blogA could map to http://www.mysite.com/blogA.php. If your stub files are in the blog folder then you would want http://www.mysite.com/blogA could map to resolve to http://www.mysite.com/blog/blogA.php, or something similar.
5 xangelusx Nov 13, 2006 20:45
PPS: Check your server's error log files if you are still having trouble. They may help you refine your redirection expressions.
6 sylv Nov 13, 2006 22:21
woaw :) Thank you xangelusx !!!
I'll try all these concise instructions and be back here to let you know What the outcome is.
Just so we're clear, my understanding of htaccess only came after a full 12 hours of trial-and-error
Pretty good though (compared to me :)) )
=> Thanks again very much.
Hello xangelusx !!
Sorry to bother you, but I seem to have difficulties with my .htaccess file, and since you seem to know much more about it, I though I could ask you:
Carrying on from a previous thread ( http://forums.b2evolution.net/viewtopic.php?p=46473&highlight=#46473 ), I managed to add a line from your code, and it has improved it.
This is my current situation: ( the blog in question is: aldo)
- I create a new blog with Autoblog, and the new user is correctly [u]redirected[/u] to his new blog: www/blogs/username.
- Furthermore, all [u]the links[/u] are correctly displaying the address that should be: www/blogs/username.
- However, the only way to access the blog is by entering on [u]the address bar[/u]: www/blogs/index.php/username.
I use stub files, and the folder I use for them is called: blog
This is a copy of my .htaccess file:
I wonder if you could help me please.
Thank you