1 gr8dude Jun 21, 2011 10:45
3 gr8dude Jul 25, 2011 19:16
Thank you for the quick response; I'm sorry for not reacting earlier (life threw me some undocumented exceptions).
The method described above works, but there are some side effects I did not consider. What happens is that the page opens and the stuff is rendered correctly, but if I try to post a comment - some files cannot be found.
I figured that the base_url needs to be changed too, so there's a new step in those instructions:
Copy b2evo's files to to /__b2evo
Copy index.php to /
Change index.php "require_once dirname(__FILE__).'/conf/_config.php';" to "require_once dirname(__FILE__).'/__b2evo/conf/_config.php';"
Change basic_config.php "$baseurl = 'http://site.net/';" into $baseurl = 'http://site.net/__b2evo/';
[/list:o]
After that, everything works, but there is a side effect: all the URLs have "__b2evo" in them, so all the old links are broken.
Indeed, I forgot about mod_rewrite, thank you for the suggestion. Here is the .htaccess I am using, it is placed in the root directory of my site (where I now copied index.php from /__b2evo)If you want to keep old links to media files use rewrites in .htaccess
RewriteEngine On
#RewriteLog "~/tmp/rewrite.log"
#RewriteLogLevel 3
RewriteRule (.*)/media/(.*) $1/__area51/media/$2
However, it does not work. Hmmm... The mod_rewrite log is not created either, so I am a bit puzzled.
Further assistance will be greatly appreciated.
If you want to keep old links to media files use rewrites in .htaccess
/media > /__b2evo/media
This is easier than edit the database even if you don't care about image links.
Simple replace query in evo_items__item table will not do any harm to b2evo structure as long as you only edit post_content.
A drawback is you will see b2evo admin, skin files and /rsc files in /__b2evo subdirectory. If you want to completely hide /__b2evo path rewrite all requests with .htaccess, you'll find lots of manuals about it in google