Recent Topics

1 Jan 16, 2009 13:52    

My b2evolution Version: Not Entered

Hello,

I have a b2evo install (1.10.2) with 2 blogs on it.

When i first installed my b2evo, i just created a domain http://blog.mydomain.com. (blog1 as default)

If i wanted to access blog2, i would use http://blog.mydomain.com/index.php/blog2
Thats why blog2 wasnt very updated and it was online just for legacy reasons. Now i started to use blog2 more often, and decided to invest more time on it.

One of my tasks is to create a dns entry for http://blog2.mydomain.com (pointing straight to blog2.
On dns it is done, now on b2evo, i see that i can accomplish this easily by using the detection on index.php and absolute path option, but it will break any external references to my posts.
Any idea of how to keep a "legacy" mode for this?

Thanks

2 Jan 16, 2009 15:04

Use htaccess to rewrite /blog2

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/blog2
RewriteRule .* http://blog2.yourdomain.com [QSA,L]

¥

3 Jan 21, 2009 22:49

wow, thanks for the hint :)
i think that it will work. Will try out at weekend and let you know later.

thanks!

4 Jan 23, 2009 16:29

Wow, i'm a bit surprised!

I just noticed that b2evo is more clever than i thought!!! :)

I made the alterations and now the old permalinks keep working just like the new ones!

I think that there is no need of the rewrite!!!

Thanks anyway!!! :)


Form is loading...