Forums

[resolved] giving WP its own directory (21 posts)

  1. mlmwealthangel
    Member
    Posted 4 years ago #

    I was going through the wordpress support document that allows you to create a wordpress file and keep your blog at your root address/main domain name. Something has happened and I can't get my blog or anything to pull up now!!

    Please help!

    Tracey

  2. alexleonard
    Member
    Posted 4 years ago #

    If you could provide a bit more information that would be good. Which support document are you referring to?

    Also can you provide sample URL's of how things were before, and what you aimed to end up with?

    Have you been changing permalinks, blog address, .htaccess?

  3. mlmwealthangel
    Member
    Posted 4 years ago #

    ok. My goal was to have my blog at http://www.mlmiseasyonline.com instead of http://www.mlmiseasyonline.com/blog. I found a support doc that gave instructions on how to change the URL's on the options section of wordpress. I thought I was creating the separate wordpress directory properly and putting the index file there. Once I finished, I was unable to access anything. I'm trying to at least find my blog!

  4. moshu
    Member
    Posted 4 years ago #

    I thought I was creating the separate wordpress directory

    Don't think! Just follow the instructions by letter.
    Giving_WordPress_Its_Own_Directory
    Skip #6, since your install IS already in a subfolder.

  5. alexleonard
    Member
    Posted 4 years ago #

    Hmm, well, I've often moved the location of my blog around the place and whilst it sometimes causes a little trouble, it's generally ok.

    Do you have FTP access all set up so that you can upload and download your files?

    If so, the usual method I go about things is to go into

    domainname.com/blog/wp-admin

    Go to options and change my blog address from domainname.com/blog to domainname.com

    Hit apply - then you'll get an error as you have to move the files. So, then move all the files from the /blog directory into the root (and you have to move everything - wp-content, wp-includes, wp-admin, plus all the loose files)

    Then things are generally fine, although it might be necessary to update any static URI's around the site - anything, say an image, that was pointing to domainname.com/blog/wp-content/uploads/image.jpg or something.

    These updates can be done with mySql queries if necessary.

    The best post I've ever read on moving a word press install is here:
    http://www.tamba2.org.uk/wordpress/move/

    This article covers everything so completely you won't need to worry.

    I'd say if you're confused, retrace your steps and see if you can't get it working the way it was before. Then follow that article to the letter!

  6. mlmwealthangel
    Member
    Posted 4 years ago #

    Pardon my dust..but I am new to this. There was no way for me to know to skip #6. So, as you can see, following the instructions as they are written can possibly cause a mishap:- If there is any instruction you can give to undo what I did it would help. See, I have already gone through all the steps and when I got to #9, I didn't see that particular line. So, I am stuck there, but because changes have been made, I can't get back to where I was either.

  7. alexleonard
    Member
    Posted 4 years ago #

    Hmm, sounds like the kind of thing I'd need to see in more detail - unfortunately I'm wrecked and have to get some sleep - I have to be in work in 6 hours.

    Hopefully someone will pick up on this - or else I'll be able to check in on this thread again tomorrow evening.

    Sorry to jump ship like this.

  8. mlmwealthangel
    Member
    Posted 4 years ago #

    Alright...I have gotten all the wordpress files into it's proper directory and it is visible online. However, my actual blog is still not showing up. In my index.php file, the line as stated in the tutorial under #9, I don't see that anywhere. If I can just get the proper "blog" file into the right place, it will show on my domain. Any suggestions on locating that file?

  9. mlmwealthangel
    Member
    Posted 4 years ago #

    Can I please get some help on how to get my image files back and my links to work again. My blog is now showing at my web address like normal, but has lost some functionality. Anyone?

  10. alexleonard
    Member
    Posted 4 years ago #

    You have a problem with your permalinks and .htaccess

    Your links are following the permalink setting of

    http://mlmiseasyonline.com/about-me/

    whereas it is only working when you use:

    http://mlmiseasyonline.com/index.php/about-me/

    So you need to update your .htaccess file at the root of your server to:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    and hopefully that should do it.

    Also, can you give me an example of image files that aren't loading - I hadn't noticed any on a quick look around the site.

  11. mlmwealthangel
    Member
    Posted 4 years ago #

    ok. thanks! Got some sleep huh?:) Anyway, the images are basically my chicklets buttons and my photo on my about me section.

    That's just it, I don't see the .htaccess file at the root. Would it be somewhere else?

  12. alexleonard
    Member
    Posted 4 years ago #

    Aye, got some much needed sleep although have been busy at work since about 9am. Feeling a little bleary :)

    Anyway - I often find that after I upload my .htaccess file it doesn't show up in my FTP software (as though it's not there). I think this depends on your host.

    Basically, all you need to do is create a file that is called .htaccess (that is the file name and the file extension - make sure it's not .htaccess.txt or anything).

    Add the code above, save, and upload it to the root of your site.

    Detailed info here:

    http://codex.wordpress.org/Using_Permalinks

  13. mlmwealthangel
    Member
    Posted 4 years ago #

    Arghh! Only problem now is that my FTP won't accept the change in the file name. I even went to my control panel to try to make the file name change there and it said that the .htaccess filename was invalid. Someone mentioned a searc and replace. What is that and is that needed here? Or how do I allow the 1.htaccess to change to .htaccess. I think that is my last problem!

  14. alexleonard
    Member
    Posted 4 years ago #

    Hey,

    Oh right. Are you able to locally create a file just called .htaccess and upload that directly? or is that not allowed?

    Do you have shell access to your host? Also, where are you hosted and do you know the details of your hosting package?

    The search and replace stuff to correct your images might be a little more complicated. The quickest thing would be using phpMyAdmin or something similar and doing a find and replace of all

    src="http://www.mlmiseasyonline.com/blog/wp-content/

    with

    src="http://www.mlmiseasyonline.com/wp-content/

    However you would want to be careful with this kind of thing and I'm not very qualified on the mySql end of things.

    However, if there are only a few images that you've uploaded into posts it might be easier, and safer, to manually go into Manage > Posts/Pages and look at the "Code" view.

    Look for any

    <img src="src="http://www.mlmiseasyonline.com/blog/wp-content/..."

    and change it as above by just removing the /blog/ part.

    Although, having had a look at your site I'm a little confused by the location of some of the images. Stuff that I'm seeing is listed as being at

    http://www.mlmiseasyonline.com/wordpress/wp-content/...

    So I'm not sure - have you moved all your files so that the root of your domain has wp-content, wp-admin, wp-includes and the other required files.

    You must have a wordpress folder in there so for example your login is actually located at

    http://www.mlmiseasyonline.com/wordpress/wp-admin

    I think this is probably a major cause of your problems??!

  15. alexleonard
    Member
    Posted 4 years ago #

    That post above is a bit backwards by the way - I should have looked closer at your site before I started telling you to edit things.

    If you want your site to work wholesale from the root, then you're going to need to move stuff out of /wordpress/ unless you're following:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    in which case something is just wrong with your .htaccess.

    Sorry, I hope I'm not confusing things here more than they need to be.

  16. mlmwealthangel
    Member
    Posted 4 years ago #

    I cannot directly upload .htaccess, it makes me put the 1 in there first.

    I am using yahoo small business for my hosting but not sure what kind of details you need me to know.

    As far as the moving of the files go..here are the first 6 stpes I followed from Creating a WordPress Directory:

    # Create the new location for the core WordPress files to be stored (we will use /wordpress in our examples).
    # Go to the Options panel.
    # In the box for WordPress address (URL): change the address to the new location of your main WordPress core files. Example: http://example.com/wordpress
    # In the box for Blog address (URL): change the address to the root directory's URL. Example: http://example.com
    # Click Update Options. (Do not worry about the error message and do not try to see your blog at this point!)
    # Move your WordPress core files to the new location (WordPress address).

    The first bullet here instructed me to create the wordpress file to move the files to. Am I still not comprehending this or what?

  17. mlmwealthangel
    Member
    Posted 4 years ago #

    oops! We must have been working simultaneously..didn't see your previous post. Whew! Thank goodness. Yes, I was following "Giving WordPress It's Own Directory".

    Okay, so now, how can I fix .htaccess?

  18. moshu
    Member
    Posted 4 years ago #

    The first bullet here instructed me to create the wordpress file to move the files to.

    Not true. It says to create a subdirectory/subfolder - not a file! You cannot put files into file...

    On the other hand your WP files have already been in a subfolder called: "blog". I guess the author(s) of that article assumed that if somebody has his WP install in a subfolder... they would skip the unnecessaray steps. They were wrong.

  19. mlmwealthangel
    Member
    Posted 4 years ago #

    Great. Now that that's handled, what steps do I take to allow my 1.htaccess file that's been uploaded to be renamed to .htaccess? CoreFTP won't allow me to rename the file without the 1.

  20. moshu
    Member
    Posted 4 years ago #

    Delete it, set your permalinks to default - until you figure out how that stuff works on your host.

  21. alexleonard
    Member
    Posted 4 years ago #

    Aye, it sounds like you're stuck on "Almost Pretty" permalinks until you contact Yahoo Small Business hosting to see if they allow you to create .htaccess files on your hosting - which they might not for security reasons.

    Not sure what else can be done about that.

Topic Closed

This topic has been closed to new replies.

About this Topic