Forums

[resolved] Blog in Wrong Directory? (44 posts)

  1. cowGirrl
    Member
    Posted 1 year ago #

    Installed blog in: http://easleyforsheriff.com/blog/ Works fine.
    What I want is for the blog to come up at: http://easleyforsheriff.com
    How can I fix this?

    Here is the error at: http://easleyforsheriff.com

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@easleyforsheriff.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8m DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at easleyforsheriff.com Port 80

    Thank you for your help!

  2. Samuel B
    moderator
    Posted 1 year ago #

  3. cowGirrl
    Member
    Posted 1 year ago #

    Both of those seem to infer that the blog is not in it's "own directory". It is in its "own" directory now: /blog/ . I want to move it (back) to the URL: http://easleyforsheriff.com - not in: easleyforsheriff.com/blog/ - which was a mistake.

    What do I do to move just the index page to the main URL and keep the rest of the blog "workings" under /blog/ ?

    All this trouble originated because of a hacker, and I did not load the new blog in the right place so now no one sees anything on the main page, even though I DID have an index page to point people to the blog but that wasn't seen either.

    Thank you!

  4. James
    Happiness Engineer
    Posted 1 year ago #

    If you want the index to be at easleyforsheriff.com and the rest of the blog to be at easleyforsheriff.com/blog/ , follow this guide:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    If you want to move everything from easleyforsheriff.com/blog/ to easleyforsheriff.com , follow this guide:

    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

  5. cowGirrl
    Member
    Posted 1 year ago #

    Alrighty then... see what I have now: http://easleyforsheriff.com

    Warning: require(./wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/easley4/public_html/index.php on line 18

    Warning: require(./wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/easley4/public_html/index.php on line 18

    Fatal error: require() [function.require]: Failed opening required './wordpress/wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/easley4/public_html/index.php on line 18

    Moved files as per instructions for: leaving blog in it's own directory and index in root.
    Note that there is an htaccess in the /blog/ as well as in the root (already there). Moved the index.php also.
    Edited (all w/ Code Editor at server) index.php to: require('./wordpress/wp-blog-header.php')

    Also see: http://easleyforsheriff.com/blog/

    What now?

  6. James
    Happiness Engineer
    Posted 1 year ago #

    You need to change the line to use your directory name for the WordPress core files. In your case that would be:

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

  7. cowGirrl
    Member
    Posted 1 year ago #

    http://easleyforsheriff.com/
    Now I get this:

    Redirect Loop

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

    * Have you disabled or blocked cookies required by this site?
    * NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.

    uhhh... now what? :o)

  8. James
    Happiness Engineer
    Posted 1 year ago #

    At Settings/General in your admin panel, make sure that you have:

    WordPress address (URL): http://easleyforsheriff.com/blog

    Blog address (URL): http://easleyforsheriff.com

    If that is correct, re-save your permalink structure at Settings/Permalinks. If WordPress cannot automatically edit your .htaccess file, it will provide manual instructions after saving.

  9. cowGirrl
    Member
    Posted 1 year ago #

    How many strikes now? :o)
    I'm still getting the same "Redirect Loop" as in my last post.
    I get no instructions, or nutin'.

  10. cowGirrl
    Member
    Posted 1 year ago #

    When I go to /blog/ as it used to be I get the whole index of the blog contents. So no site is showing in either URL.

  11. marjiec
    Member
    Posted 1 year ago #

    I found you site with this url
    http://easleyforsheriff.com/wp_blog

  12. cowGirrl
    Member
    Posted 1 year ago #

    No offense, but that does not help me one bit.
    Can someone give me a reason for any of this? Meaning: How Can I Fix The Problems?

  13. cowGirrl
    Member
    Posted 1 year ago #

    Can I re-install the "offending" Atahualpa blog and still keep the content? Please tell me how to go about it if possible.
    I will give you user/pass to the Cpanel to fix the problem, if I can get an edress so it won't be posted here.
    I'd really like to get this resolved.
    Thank you.

  14. marjiec
    Member
    Posted 1 year ago #

    My mistake by not making it clearer, I guess.
    You need to get you blog out of a folder named wp_blog
    I assumed you would see that from the url I posted.
    Of course I could be not understanding this issue.
    If so, sorry.

  15. cowGirrl
    Member
    Posted 1 year ago #

    I have followed ALL of the instructions; per all the posts above.
    What do I do and how?

  16. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    @marjiec, you are seeing the 404 page.... you can go to http://easleyforsheriff.com/thisisapaininthebutt or just about anything and see the same page

    it has nothing to do with directory....

    @cowGirrl
    you have all the wp files in the /blog directory?
    you have the index.php in the root directory?
    you have edited the default index.php to point to the /blog directory?
    the .htaccess that was in the /blog directory is now in the root?
    you have blog and WP url's set up as @macmanx pointed out above?
    you've regenerated your permalinks? (save to default and test your site)

    I just want to make sure I'm following along...long threads get convoluted

  17. cowGirrl
    Member
    Posted 1 year ago #

    Originally and mistakenly the blog was installed in /blog. I want the site to show at: easleyforsheriff.com

    index.php is in the root (/public_html/)

    Not sure what you mean by "editing the default index.php to point to the /blog". If you mean following the directions above... done. No change.

    There is an .htaccess in the root and /blog.
    Permalinks were regenerated, saved, no further instructions. No blog has shown up in the either URL.

  18. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    well....if you have the index.php in your root, pointing to
    require('./blog/wp-blog-header.php');

    and you have the proper settings in WP general settings (this is important) as was shown above, it really should work (its how I have my WP set up)

    do you have any other files in your root messing things up?

    you could try deleting or renaming the .htaccess file to see if its doing something strange

  19. cowGirrl
    Member
    Posted 1 year ago #

    I changed the .htaccess in /blog and it made no difference. I get the "Redirect Loop" message.

    The index.php points to: require('./blog/wp-blog-header.php');
    I've "changed" it 3 times and no diff... with same results. No blog where it's supposed to be.

  20. cowGirrl
    Member
    Posted 1 year ago #

    and I see nothing that looks suspicious in the files... I can send the plain text files, if you want to look them over (de-linked).

  21. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    I meant the .htaccess in root..... something is keeping your index.php file from loading at all, that file seems suspect

    rename it temporarily and see what happens

  22. cowGirrl
    Member
    Posted 1 year ago #

    THAT WAS IT! Though the instructions said to copy that file in the root.

    I renamed it to .atacc

    The blog is now showing at easleyforsheriff.com
    Should .atacc just be deleted then?

    THANK YOU!!!

  23. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    sure doesn't sound like you need it.

    A new .htaccess will be made by WP when you customize your permalinks

    glad we got that figgered out!

  24. cowGirrl
    Member
    Posted 1 year ago #

    Yessirrreee..... You da man!
    Gracias Voodoo

  25. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    No problem! If yer all set, go ahead and use the dropdown on the right here to mark the thread resolved!

  26. cowGirrl
    Member
    Posted 1 year ago #

    Hold on - now I can't get into admin...

  27. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    didn't you say you were messing with an .htaccess file in the /blog directory?

    that could be messing with the backend...rename that one now

  28. cowGirrl
    Member
    Posted 1 year ago #

    What's the new admin URL?
    I hadn't had a chance to change the permalinks...

    http://easleyforsheriff.com/blog/wp-admin 500 error
    http://easleyforsheriff.com/wp-admin 404 error

  29. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    it'll be http://easleyforsheriff.com/blog/wp-admin

    you backend admin stuff will still appear with the /blog subdir
    frontend will appear to run from root

  30. cowGirrl
    Member
    Posted 1 year ago #

    As above... it doesn't work. See url errors.

Topic Closed

This topic has been closed to new replies.

About this Topic