Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Changing location of Wordpress install
Old 07-24-2009, 01:33 PM Changing location of Wordpress install
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Im still getting to grips with how to create a Wordpress theme and have ran into a problem.

I have installed Wordpress and feel comfortable in creating my own theme. I originally had wordpress installed in a folder called 'wordpress', but now I have moved the folder into a sub folder inside one of my other websites, and have renamed 'wordpress' to 'blog'.

Now, whenever I use any functions such as

PHP Code:
<?php bloginfo ('url'); ?>
it still points to the '/wordpress' site, not the new destination where I have copied it. Does anyone know how I can change it? I've looked in the wp-config.php file but can't seem to find anything in there.

Surely there must be a way around it without reinstalling Wordpress!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 07-24-2009, 01:50 PM Re: Changing location of Wordpress install
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
Have you changed the blog location in the admin panel via the settings page?

You have to tell it "where" the blog is located.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 07-28-2009, 06:11 PM Re: Changing location of Wordpress install
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Thanks. I managed to find it okay but for some reason changing the location really messed things up! I had to do it on two occasions.

I am certain that the addresses were correct. The first time I changed it, I was forwarded to the login page, however I received a 'page not found' error. And the second time it was still thinking that it was in the old location... very strange! This was on two separate occasions aswell, and in two different locations.

I basically just had to reinstall Wordpress both times to fix it, as it seemed to completely mess things up!

It's sort of put me off ever trying it again lol, have you ever had this problem??
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 07-28-2009, 08:33 PM Re: Changing location of Wordpress install
vangogh's Avatar
Post Impressionist

Posts: 10,689
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
You shouldn't have had to reinstall WordPress. For the future you want to log into the WordPress admin and go to Settings > General. At the top of the page you'll see URLs for WordPress address and Blog address. The WordPress address is where you have WordPress installed and Blog address is what you want the home page of the blog to be.

In your case you would have needed to change the WordPress address to wherever you moved WordPress. Then you would need to move the main index.php file (for WP, not your theme) and place it into the same directory as your Blog address. Open the index.php file and you'll see a line of code that reads

require('./wp-blog-header.php');

You need to change the path to reflect where you now have WordPress. Say you moved WordPress from the root directory to a blog folder inside the root directory you'd change the above line of code to

require('./blog/wp-blog-header.php');

You'll also want to move your .htaccess file from the original directory to the new Blog address directory.

That should be all you need to do.

If you notice there's a link to the right of Blog address in the WordPress admin. That link will take you to a page on the WordPress Codex that goes into more detail about what I just said above.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-30-2009, 05:28 AM Re: Changing location of Wordpress install
Junior Talker

Posts: 2
Name: jaesonlewis
Trades: 0
Thanks for your help – I guess I got a little lost with redirects and subdomains and multiple sites. I'd forgotten about those fields inside the Wordpress admin area.

Thanks again for your help – it is greatly appreciated.



Earn $500/Day | Get More Out Of Your Articles
jaesonlewis is offline
Reply With Quote
View Public Profile
 
Old 07-30-2009, 11:19 AM Re: Changing location of Wordpress install
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
It happens. I had trouble trying to style the 3rd level nested comments in Wordpress once and could not get them to even show up properly! Duh, I never activated them in the Admin panel! WP is full of stuff like that! So simple a task, yet, so simple to forget!
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 07-30-2009, 04:41 PM Re: Changing location of Wordpress install
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Thanks, I found the easiest way is to try the 'quick fix method' here
http://codex.wordpress.org/Changing_The_Site_URL
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 08-04-2009, 04:12 PM Re: Changing location of Wordpress install
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
More problems! I've just been trying to upload images and it's been saying that the path is not writable. Then I noticed that the upload path is still set to when I was testing it locally!

I've managed to change it in the database but it surprises me how little it is mentioned on the Wordpress Codex. It just has one little line right at the bottom of the page here http://codex.wordpress.org/Changing_....htaccess_file telling you how to change the upload path.

I would have thought they would make it more obvious!? It's making me concerned that there are other things that I've missed... I'd hate to hand over a Wordpress site to a client only to find out weeks down the line that parts of it weren't working properly because some of the paths were pointing to my local copy of the site!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 08-05-2009, 01:37 AM Re: Changing location of Wordpress install
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
That is a problem with developing locally, paths for uploaded images will remain as localhost/ etc. I try not to do too much "uploading" while developing local, just a test here and there.

Having the proper write permissions depends how you move your site to live server from local. If you simply move the files and database, then there will be problems with files that should be writable. When Wordpress is installed (from scratch) onto a server, WP sets the upload folder to be writable. Simply moving that upload folder from local will not do the same thing.

You can go in via ftp or whatever and change that upload folder to be writable.

I totally agree though, there should be a GREAT article somewhere that shows the BEST way to move a WP site from local to live. I have read articles that only touch on the subject. Some have recommended installing WP fresh, then uploading the local database. templates, etc. AFTER basic WP is installed.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 08-05-2009, 09:01 AM Re: Changing location of Wordpress install
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Cheers for the tips
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to Changing location of Wordpress install
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31541 seconds with 12 queries