Support » Fixing WordPress » Root directory/subdirectory redirect

  • christyslavik

    (@christyslavik)


    I installed WP on http://www.momapprovedblog.com/blog and and trying to redirect to http://www.momapprovedblog.com for several days.

    I am utilizing the Oxygen template.
    I have deactivated all plugs and repeated these processes to no avail.

    I have already followed the steps here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
    DONE -In the box for Site address (URL): change the address to the root directory’s URL. Example: http://example.com
    DONE – Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
    DONE – Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress (wordpress in our example) directory into the root directory of your site—the latter is probably named something like www or public_html. The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you’ll have a web.config rather than a .htaccess file in your WordPress directory.
    DONE – Edit your root directory’s index.php.
    Open your root directory’s index.php file in a text editor
    Change the line that says:
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
    to the following, using your directory name for the WordPress core files:
    require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );
    Save the file.
    DONE – Login to your site (if you aren’t still already). The URL should still be http://example.com/wordpress/wp-admin/
    DONE- If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can’t write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

    Here are the issues I am having:
    1) When I pull up http://www.momapprovedblog.com it told me it could not find http://www.momapprovedblog.com/blog/
    so I changed the permalinks to default instead of Postname (which I want) then I typed in http://www.momapprovedblog.com and it pulled up the blog but is still showing http://www.momapprovedblog.com/blog as the url. (if it is on any other structure other than default it will not pull up the site)

    2) Now all of the “Recent Posts” links are not working either.

    Help!

Viewing 1 replies (of 1 total)
  • Thread Starter christyslavik

    (@christyslavik)

    Also tried switching to twenty fifteen and same issues are happening – no hidden subdirectory and recent post links are not working

Viewing 1 replies (of 1 total)
  • The topic ‘Root directory/subdirectory redirect’ is closed to new replies.