WordPress.org

Ready to get started?Download WordPress

Forums

Changed site URL... All I see is "No Input File" (7 posts)

  1. nathan_nielson12
    Member
    Posted 2 years ago #

    Hello al

    I am fairly new to WordPress and I changed my site URL under general settings...

    My files are housed in http://example.com/wordpress on GoDaddy's FTP

    I know how to hardcode the correct Site URL in, but I dont want to do the temporary fix.

    I came across these instructions below:

    Edit functions.php
    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. FTP to the site, and get a copy of the active theme's functions.php file. You're going to edit it in a simple text editor (like notepad) and upload it back to the site.

    2. Add these two lines to the file, immediately after the initial "<?php" line.

    update_option('siteurl','http://example.com/blog');
    update_option('home','http://example.com/blog');
    Use your own URL instead of example.com, obviously.

    3. Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly; if you can use that, do so.

    4. Load the login or admin page a couple of times. The site should come back up.

    HOWEVER, I can only find a admin-function.php file , which tells me to use the admin.php file as everything is redirected

    I cannot find a function.php file anywhere.
    It says to create one if I do not have one in the

    "If there is no functions.php file in the theme:

    Create a new text file called "functions.php"

    But I have no clue where to create this file...

    Any help would be greatly appreciated!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try looking in your current theme's folder in wp-content/themes.

  3. nathan_nielson12
    Member
    Posted 2 years ago #

    Nope, nothing there

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Your theme doesn't have a function.php file? What version of WordPress are you using?

  5. nathan_nielson12
    Member
    Posted 2 years ago #

    I apologize, there is one there. I was looking in the themes parent folder, not the actual theme I am using.

    I figured out how to restore my site back so i can login and access the site; however I do have another question while on the topic

    To navigate to my site I must to to http://example.com/wordpress

    How do I change that so all somebody needs to type in is http://example.com
    ??

  6. fonglh
    Member
    Posted 2 years ago #

    You installed it into a subdirectory named wordpress.

    Either move it up one level or follow the instructions at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  7. nathan_nielson12
    Member
    Posted 2 years ago #

    I did install it into a subdirectory named WordPress.

    How do I move it up one level? Its currently in the folder named "html" and I dont see anywhere to move it up.

    The link you provided is how to give WordPress its own Directory I believe (Which I have currently)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.