Forums

[resolved] Moved WordPress, Site OK, Permalinks NOT (10 posts)

  1. tewruket
    Member
    Posted 2 years ago #

    Here is my story.

    I recently moved my wordpress site from http://abc.com/one/wordpress to http://123.com and I followed the instructions on things to change and the main site works but all of my permalinks are bad.

    I noticed "RewriteRule . /one/wordpress/index.php [L]" was there so I changed it to "RewriteRule . /index.php [L]" like the original wordpress website was before I moved it to 123.com/old.

    Still no go. I tried a few things and I've even had the DB and folders restored but something is still wrong. When I click on the pages all I get is the page without it's contents. It still pulls the page title but not any content.

    What do I need to do to get this back?

  2. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    Reset your permalink from wordpress admin area and add this code in htaccess:

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

    Now, check with old and new posts of your blog.

    Thanks,

    Shane G.

  3. tewruket
    Member
    Posted 2 years ago #

    Still nothing. Posts are ok but pages are not. The pages load their correct title but no post/page information.

  4. tewruket
    Member
    Posted 2 years ago #

    Alright, how about this.

    I just created a new page. Something that has never been before, it also will show the page and the page title, but no page information.

  5. tewruket
    Member
    Posted 2 years ago #

    I don't know if this matters.

    The website is moved to 123.com and when I go into permalinks at the bottom it says

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /one/wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /one/wordpress/index.php [L]
    </IfModule>

    So it's still trying to do that. Why?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Because your .htaccess file isn't writable. You either need to change the permissions on it or edit the file manually yourself.

  7. tewruket
    Member
    Posted 2 years ago #

    Forget my last post. If I switch back to the original wordpress theme the entire thing works fine. I somewhere broke my theme. Does anyone have any idea where I could have done this?

  8. tewruket
    Member
    Posted 2 years ago #

    Resolved

  9. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    What was the problem?

  10. tewruket
    Member
    Posted 2 years ago #

    I re-downloaded my theme, backed up the old files, re-uploaded the new theme over old and everything worked. So one by one I put back the footer,sidebar and style sheet I knew I changed and everything is working fine now.

    Thanks for the help guys.

Topic Closed

This topic has been closed to new replies.

About this Topic