News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to import my set up when upgrading to 2.09 from 1.19

Started by Topman, April 17, 2015, 08:13:49 AM

Previous topic - Next topic

Topman

I have just bitten the bullet and re created a forum using the total install of 2.09.
I have put in in a sub domain this time.
It all works fine although as yet I have not imported my existing database content to the new database yet.

What I want to knwo is how do I transfer the style of the old forum in 2.09?
I tried just swapping the index,.php file and that stopped it working.
If you have a look at the old current forum http://www.brand-newhomes.co.uk/forum/smf/index.php  you can see how it varies from  the  "standard default theme"
I did this years ago and it would take me a long time to find all the code I changed.

I also want to set up a re direct to the new sub domain http://forum.brand-newhomes.co.uk  and tried this:
RewriteEngine on
Redirect permanent /forum/smf but the home page is not re directing.

I tried:
RewriteEngine on
RewriteRule ^/forum/smf/index.php http://forum.brand-newhomes.co.uk/

but this worked:
RewriteEngine on
RewriteRule ^/buying_brand_new_home_initial_considerations.htm http://forum.brand-newhomes.co.uk/

So presumably the first part ^/forum/smf/index.php or /forum/smf  is wrong.

What I cannot do is do a separate redirect for each and every post - all 1500 of them!
Does anyone have any ideas how to do this?

Kindred

why did you do that?

when going form one version to another, you should not be setting up a new installation and then attempting to import anything. You SHOULD be using the upgrade script directly on your existing forum/database

http://wiki.simplemachines.org/smf/Upgrading

If you do it that way, there is no need to mess around with silly redirects either.

However, regarding your theme... nope.  1.1.x themes will NOT work on 2.0.x
You would have to pick or design a new theme based from the 2.0.x Curve templates.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Topman

But I want my forum in a sub domain!
Will an upgrade mean this is unnecessary?

To be honest, I am afraid to let the upgrade or 2.09 anywhere near my current and working database.
I would rather use a new installation and a copy of the old database before getting rid of the old one.

Antes

Then you have to clone your current running forum into a sub domain. Which means you have to export DB and import into new one, copy files to new location, change paths (or fix) and settings to show new DB.

Kindred

or -- better choice, IMO...

upgrade in place with the current 1.1.x to 2.0.x and then MOVE the forum files and run repair_settings.php to move it into the subdomain
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antes

Quote from: Kindred on April 17, 2015, 10:54:12 AM
or -- better choice, IMO...

upgrade in place with the current 1.1.x to 2.0.x and then MOVE the forum files and run repair_settings.php to move it into the subdomain

That's a fair solution as well only if user doesn't want to do a test upgrade before doing it for real :)

Illori


Topman

Quote from: Antes on April 17, 2015, 10:47:48 AM
Then you have to clone your current running forum into a sub domain. Which means you have to export DB and import into new one, copy files to new location, change paths (or fix) and settings to show new DB.

The old database will be the one I use, as I will import the old database to the new empty one.
If the existing files are moved to the sub domain URL will this do the re direct?

Kindred

no...   moving files will NOT redirect...  and doing it the way you suggest is going to cause you headaches, IMO.

if you just have a redirect, then http://stackoverflow.com/questions/15712358/redirect-directory-to-a-subdomain
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Topman

I have tested this:

RewriteEngine on
Redirect permanent /forum/smf/ http://forum.brand-newhomes.co.uk/


and it works for the home page.
At the moment any other page gets an "error 404 not found" which it would as the database isn't on the new forum URL yet.

Will this simple re direct work for ALL posts, threads, catagories of the existing forum (once the database is set up) with the need to re direct every one?

Night09

I can see your forum fine and read the welcome post but I do notice there is a template issue bunching everything up on the left. This shouldnt happen on a fresh install.

Topman

I see what you mean. 
That is why I wont let 2.09 anywhere near my 1.19 working database until 2.09 works properly.

Night09

Make a copy of your database and files first then you can do a test run as suggested. As long as you have a full backup to fall back on dont be afraid of attempting to upgrade.

2.0.9 will put a complete new set of template files in the folder so any previous 1.0.x errors should be gone anyway. You should be left with a clean 2.0.9 full of posts but no mods if it goes right.

Upgrading is nothing to do with redirecting also mentioned in this thread for reference.

Kindred

I still maintain that you are going about this entirely the wrong way....






regarding the redirect...
You apparently didn't pay attention to the stackoverflow article

RewriteRule ^(forum/smf/.*)$ http://forum.brand-newhomes.co.uk/$1 [R=301,L,NC]
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Topman

I used this:

QuoteRewriteEngine on
Redirect permanent /forum/smf/ http://forum.brand-newhomes.co.uk/

and it did re direct the home page OK
I hope it works with the other pages once the database is imported.

I may be "going about this the wrong way" but this forum is littered with users who have upgraded and found problems or had their database messed up. 

Kindred

not if they did it as instructed...


and I keep telling you... that htaccess is WRONG - Use the one that I posted...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Topman


Kindred

are you being purposefully dense?

YOU are attempting to use:

Redirect permanent /forum/smf/ http://forum.brand-newhomes.co.uk/


both I *AND* that article have told you to use

RewriteRule ^(forum/smf/.*)$ http://forum.brand-newhomes.co.uk/$1 [R=301,L,NC]
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Topman

No I am not being purposely dense!
I have used both re directs your one and the one I was given.
BOTH only re direct the home page of the forum to the new URL.

All the posts are still on the old URL and are not redirected.
In fact they return an error 404!
This for example: http://forum.brand-newhomes.co.uk/house-builders/
Click on the URL in the browser and this comes up
http://forum.brand-newhomes.co.uk/house-builders/?pretty;board=house-builders.0

And this is with 1.19.  I haven't even started with the upgrade to 2.0.10

Antes

First of all, your forum. subdomain fully using your main forum's information, which is why its broken.

RewriteEngine On
Redirect 301 / http://forum.brand-newhomes.co.uk


Should be well enough to do all redirects (Warning, this code also won't work, if you don't clone your forum into sub-domain with proper information).

Advertisement: