Recent Topics

1 Feb 22, 2005 16:51    

I'm very close to switching [url=http://danny.brendoman.com]my blog[/url] from MT to b2evo, but I want to have multiple blogs, each with its own subdomain, and I want the permalinks to be just so. I've found two solutions that almost get me there, and if someone can combine them, then we'll have a very nice hack.

YaBBa wrote a [url=http://yabba.waffleson.co.uk/index.php?blog=6&title=multi_sub_domain_blogs&more=1&c=1&tb=1&pb=1#comments]nice little hack[/url] that makes subdomains work. I've got that method working at sub.personman.com. But the permalink isn't quite right:

sub.personman.com/index.php/sub/2005/02/22/test_1#comments (a real link)

What I'm looking for is a permalink like this:

sub.personman.com/2005/02/22/test_1#comments (not a real link)

There is also a hack [url=http://forums.b2evolution.net/viewtopic.php?t=2314]here[/url] (solution 3) that makes subdomains work, but the permalink url isn't too good:

personman.com/b2evo/sub/2005/02/22/test_1#comments (not a real link)

If anyone can fix one of these hacks so that subdomains work with permalinks like I have above (without having to install b2evo to the web root), I would be grateful, and you would be responsible for me making the switch to b2evo.

Thanks

2 Feb 24, 2005 22:17

I removed the YaBBa hack, so none of the links above work now. Is there a way to get permalinks like I want without installing b2e to the web root?

3 Feb 25, 2005 10:31

I'm not sure what your problem is, I installed 0.9.0.10 to http://blogs.mikkysworld.com and I don't seem to have problem linking comments etc.

I have to note that my installation was a scripted installation provided by my hosts www.eckohost.com but as far as I can see it's hackfree (until I started playing with it :) )

4 Feb 25, 2005 15:10

Right. One subdomain would work fine, but I want several blogs, each with its own subdomain, and only one installation of b2evolution. I can use .htaccess to point a subdomain to an address and get a good entry point, but I can't get the permalinks to use the subdomain and look how I want. I'm probably just being picky, but it seems like it should be possible to do what I want. If I knew more about mod_rewrite and php I would hack it myself. From what I hear the next major release will do just what I want.

5 Mar 01, 2005 22:41

Use this as mod_rewrite in your .htaccess file...
This mod_rewrite depends on the use of stub files....

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Skip rewrite if no hostname or if subdomain is www
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST}<->%{REQUEST_URI} ^([^.]+)\.<domain without www>\.<tld>(:80)?<->/([^/]*) [NC]
RewriteCond %{REQUEST_URI} !%1
RewriteRule ^(.*)$ stub/%1 [L]

replace <domain without www> with your domain
replace <tld> with the tld.

Example :
\.studentenlog\.nl

So maybe someone can do now something for me.
I want a plugin that when a person registers himself, he gets of course an email to convirm and when he convirms, automatic a copy of a default blogfile (stub file) is copied with his choosen nickname (is subdomain).

So everything is automatically created and ready to use for him...

Regards,
Raptor

6 Mar 02, 2005 23:44

raptor,
It's not working for me. I have a stub named stub (no .php) sitting in the root directory. I added those lines to my .htaccess and tried going to stub.personman.com. I just get a 500 error.

7 Mar 03, 2005 12:49

oeps sorry !

This line is the problem :

RewriteRule ^(.*)$ stub/%1 [L]

my stubfiles are all in a subdir called stub..

so here is my root of my website like.

./index.php
./stub/<stubfiles>

So of course you have to tweak al ittle bit the code ...

Regards,
Raptor

8 Mar 03, 2005 12:54

personman,

i gues your line would be :
RewriteRule ^(.*)$ ./%1 [L]

or

RewriteRule ^(.*)$ %1 [L]

meaning every file in your root can also be accessed as a subdomain.
For example the stub file monkey is then accessible as
monkey.<yourdomain>.com

because there are also other files in the root of your website besides stub-files, i created for myself a subdirectory called stub.
I put in this directory my stub files.
And with my designed mod_rewrite code, you can then access a stub file as a subdomain without changing dns etc.

And its much more quicker then dns....

Regards,
Raptor

9 Mar 03, 2005 15:03

Ok, thank you.

Now if only there was a way to make my permalinks go to stub.personman.com/2005/03/02/title

instead of

www.personman.com/stub/2005/03/title

I know it's a minor difference, and it would require some changes to b2evo's core, but that's my ideal permalink. I am, however convinced to switch my main blog (danny.brendoman.com) to b2evo. Of all the CMSs I've tried, it's been the most suited to what I want to do. Thanks again for your help.

10 Mar 03, 2005 17:36

i agree with that.
B2Evo is in my opinion the best there is.

easy to tweak.

i use it now for 2 weeks...

I already see many possibilities that for instance wordpress certainly not have. And with the code right now also in future not will have in the ease B2Evo has it.

And B2Evo is more secure.

Regards,
Raptor

11 Jan 31, 2006 00:34

The above rewrite rules did not work for me. Can somebody throw more light on the above please?

Shade

12 Jun 08, 2006 20:45

Raptor I need your help! :(

My .htaccess file looks like this:

RewriteEngine On 
Options +FollowSymlinks 
RewriteBase / 
RewriteCond %{HTTP_HOST} . 
RewriteCond %{HTTP_HOST} !^www\. [NC] 
RewriteCond %{HTTP_HOST}<->%{REQUEST_URI} ^([^.]+)\.blog.nuh\.pl(:80)?<->/([^/]*) [NC] 
RewriteCond %{REQUEST_URI} !%1 
RewriteRule ^(.*)$ blogi/%1 [L]


I keep my stub files in "/blogi" folder...
When I try to call a domain f.e. http://presik.blog.nuh.pl I get "500:Internal Server Error" :(
I have no idea why :(

A am looking forward for your help!
Thx in advance...

13 Jun 09, 2006 03:03

I don't think raptor will help you. If you look on his progiil, he hasn't posted anything in a year. So I guess he doesn't come here anymore. =(

Anyway, I hope somebody else will be able to help you!


Form is loading...