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?
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.
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.
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.
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?
Because your .htaccess file isn't writable. You either need to change the permissions on it or edit the file manually yourself.
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?
tewruket
Member
Posted 2 years ago #
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.