Recent Topics

1 Jun 16, 2015 08:22    

I am attempting to set up a second domain as URL for a blog/collection on the primary domain. I have followed the instructions re: multisites and multiple domains, and my second domain loads the primary domain index page OK. However, when I set up the absolute URL for the second domain to point to the relevant blog, it continues to load the primary domain index.php

I suspect this has to do with my having a 301 redirect on the primary domain to point to a sub-directory, which I need to have. If I use a javascript redirect like this:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin Code
redirectionTime = "0000";
redirectionURL = "http://www.primarydomain.com/015/";
function redirectionTimer() { self.setTimeout("self.location.href = redirectionURL;",redirectionTime); }
// End Code-->

</script>

...

<body onLoad="redirectionTimer()">

will I avoid the complexities involved with 301 redirects?

2 Jun 17, 2015 04:25

@tgodfrey wrote earlier:

my having a 301 redirect on the primary domain to point to a sub-directory, which I need to have.

Why? Why don't you install b2evolution at the root of your webserver?

That's how it's designed to work and to be hassle free.

3 Jun 17, 2015 05:06

Yes. The thing is that in order to avoid being pestered by people who want to know why their site isn't working - you know, like when you click a button in Word and a page appears - I've fallen into using subdirectories. So I set up a new site on upgrading, and then change the redirect. A private experience, like.

But having tried to utilise multi-domain a few times and never succeeded, I can see what you mean.

So right now I have an install in /015, and I'm doing an install in the root. But because of the 301 redirect I am taken to the old /015 install. I would like to keep the /015 site live while I mess about.

4 Jun 18, 2015 01:09

Trying to run 2 instances of b2evolution, one being in a sub directory of the other will create additional problems.

If you want to test you should do it with completely different domains and a separate (temporary) web hosting account. Short of that you are creating your own pain.

5 Jun 18, 2015 02:03

Sorry, I should explain: I'm doing this as a preliminary to moving the site to the root.When I get the / site working OK, I'll delete the /015. I wanted to do an update, but to keep it simple for the moment I'll move the /015 site to / by using the backup files, install with the /015 database and convert to utf8, then delete the /015 install. And remove the redirect.

Then try the multi-domain setup where it should be.


Form is loading...