WordPress.org

Ready to get started?Download WordPress

Forums

Error in widgets under Presentation (10 posts)

  1. gatorgse
    Member
    Posted 6 years ago #

    I moved my blog from one host to another, thanks to the directions on this site, and all is well except two items. When I go to the Presentation section, and click widgets, I can see the widgets, but I can no longer edit them. The sidebar note is still there as well. Secindly, is there a way to change the path of my images all at once? I moved them and they show /wordpress in the path, but I put the blog in the root directory of the new site. Thanks.

  2. gatorgse
    Member
    Posted 6 years ago #

    Ok I think this is the missing part, but I don't know what it means to write my permalinks to the .htaccess file

    If you are using Permalinks, go to the Administration > Options > Permalinks panel and update your Permalink structure to your .htaccess file, which should be in the same directory as the main index.php file.

    Can someoone please tell me what to put in my .htaccess file?

    Thanks.

  3. gatorgse
    Member
    Posted 6 years ago #

    I found a plugin that does re-writes, and this is what it gives me:

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

    So my question is if my old links were http://www.yourcruiseyourway.com/wordpress/* and now they are http://www.yourcruiseyourway.com, what goes in the REQUEST_FILENAME sections?

    Thanks.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Nothing goes in the REQUEST_FILENAME sections. You leave them exactly as they are in your post. REQUEST_FILENAME is a keyword for Apache, you don't mess with it.

    As far as editing your posts to point to the new images location:
    http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/

    Something like this would do it:
    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.yourcruiseyourway.com/wordpress', 'http://www.yourcruiseyourway.com');

  5. gatorgse
    Member
    Posted 6 years ago #

    Thank you sooooo much Otto.

  6. gatorgse
    Member
    Posted 6 years ago #

    So I took your suggestion above and just wanted to confirm which is correct:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.yourcruiseyourway.com/wordpress', 'http://www.yourcruiseyourway.com');
    # END WordPress

    or

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

    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.yourcruiseyourway.com/wordpress', 'http://www.yourcruiseyourway.com');
    </IfModule>

    # END WordPress

    Thanks.

  7. Jeremy Clark
    Moderator
    Posted 6 years ago #

    No both are wrong. Did you read the link Otto gave you. That is SQL code which is used in your database. Read the link again.

  8. gatorgse
    Member
    Posted 6 years ago #

    ok. Thanks Jeremy. Trying to learn this on the fly. Right now the .htaccess looks like this:

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

    Will that chamge after I do the database correction? Just want to know what I'm looking for.

    Thanks.

  9. Jeremy Clark
    Moderator
    Posted 6 years ago #

    No

  10. gatorgse
    Member
    Posted 6 years ago #

    Thank you sir. I really appreciate you and Otto responding. I'm almost there. What an education. I had never even heard of blogs until last May.(guess that's obvious)

Topic Closed

This topic has been closed to new replies.

About this Topic