usernamez
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moved website, links redirect to old site, can't loginWell guys, I SOLVED IT.
As these things usually go, I made a stupid mistake.
Turns out, I had two folders named “statistik” with their own WP installs.
One in the root folder.
And one in a sub-folder to http://www.kompetensplattformen.se.
The database I was messing with was the one connected to the root folder (statistik.kompetensplattformen.se)
But the SITE I wanted to change was the one in the sub-folder (www.kompetensplattformen.se/statistik)
So I went to the correct database, changed the siteurl and home variables under wp_options, and now everything works as it should. Sorry for doing such an obvious error, but thanks for your help!
Forum: Fixing WordPress
In reply to: Moved website, links redirect to old site, can't login@neotechnomad: Thanks for trying to help, much appreciated! As to you questions:
Is your WordPress installation in a directory (folder) “statistik” – including the index.php and .htaccess
OR
is the installation in the directory – including the index.php and .htaccess AND copies of the index.php and .htaccess in the root (public_html) also?Kompetensplattformen.se and kompetensplattformen.se/statistik are two completely different sites and two different installations. The only reason I put the /statistik site on there is because… well. I don’t really know. It was easy at the time and I had access to that folder and domain. This means that the installation of /statistik, and all files for the /statistik site are in the /statistik folder and not in the root folder.
In your database, under “(your table prefix may be different)_options > option_name > siteurl” and under “(your table prefix may be different)_options > option_name > home” are the addresses the same or different?
They are both http://statistik.larcentrum.se/wp
…everything is inside a directory named “demografi” – but nothing under “statistik”. A problem here?
Did you delete the old site and keep the new?That’s THE problem indeed. There is no directory called “demografi”; I deleted it and tried to change all references back to “statistik” and moved all the files back to that folder. I obviously failed because links still try to go to /demografi.
What happened was this: I wanted to make “demografi” (new site) from a copy of “statistik” (old site) so that I would have a template to work from. Stupid as I was, and knowing nothing of database administartion, I made a copy of “statistik” as a backup (or so I thought) and tried to migrate that site to a folder called “demografi”. That failed, and I tried changing everything back to “statistik”, which is where I’m failing. The backup I made obviously doesn’t work since the database, htaccess etc are separate.
Forum: Fixing WordPress
In reply to: Moved website, links redirect to old site, can't loginThe site I broke is http://www.kompetensplattformen.se/statistik . After I fix that one, I want to try to copy it to use it as a template for http://www.kompetensplattformen.se/demografi . For now, I’ve deleted the latter and am trying to fix the former. To clarify, I want all links to go to /statistik, but they are going to /demografi .
Forum: Fixing WordPress
In reply to: Moved website, links redirect to old site, can't loginYeah I’ve been there but couldn’t solve the problem.