Wordpress redirects to wrong page after renaming - wordpress

I was changing the structure of my wordpress page making some changes to names of the pages. I renamed the pages e.g.
location > gallery
howtogethere > location
Now, I think, wordpress seems to be smart and whats to catch everything that goes to location and forwards it to gallery. The problem is, there is a new page location. When I try to access location via domain.com/location I get redirected to gallery.
The question is where are those redirects stored and how can I delete them?

Check the permalinks below Page title and if that is not changed to your changed page name change that and your problem is solved!

It is very possible that this is a cache issue. You can try deleting the cache in your browser, or you can try visiting your page from a browser that has never visited your page before.
It is also possible that it is a server side cache issue. I do not know if WordPress caches things like this, but if they do you can assume it will start working as expected eventually.

You can try to clear cache also install that plugin to manage and create redirects:
https://wordpress.org/plugins/redirection/

Related

I want to change the page name in wordpress from capnel

I want to change the page name in cpanel but when after changing the page name when i try to open it it say page not found
I tried to do it manually but still not able to get it.
If you have changed the page name in cPanel, it's possible that the old URL is still being cached by your browser. Try clearing your browser's cache and cookies and then accessing the page again.
If that doesn't work, it's possible that the change to the page name may have affected the permalinks or the .htaccess file. You can try resetting the permalinks or updating the .htaccess file to ensure that the correct redirect is in place.
If you're still unable to access the page, it could be a server-side issue and you may need to contact your web hosting provider for assistance.

WordPress start page doesn't show content anymore, only message from server hoster

When I try to access the start page of my website (WordPress) I get a message from my server provider that this site will soon be available.
When I try to access a sub page, everything is fine. Before the problem I tried to change my URL structure. I changed the menu and gave the homepage another title. (no changes in files were made) I think I have undone my changes, but maybe not all of them, because the problem still occurs. I don't know where to search for the problem any more.
I have checked/tried:
choose different theme
options -> reading -> start page -> correct start page is selected, also tried to choose different pages
deactivate caching
changed the title from the start page back to the old title
What could be possible reasons that the start page is the only page which can't get viewed?
Solved the problem. There was an index.htm in root from the server provider. I'm not sure if it was there before but however, for some reason Wordpress gave the index.htm a higher weight than my index.php. I renamed the index.htm and everything worked perfect again :)

One page won't show on wordpress after moving from live to localhost

I moved my website from live to localhost to make some modifications to it and I have encountered a problem, one page will not show up: "Oops! That page can’t be found.".
I have tried the following
1. activated rewrite_module
2. deactivated each plugin to see if anyone is causing the problem
3. recopied the database and files in case of failure during the first transfer
4. read that resetting permalinks might solve the problem. Changed permalinks to default - the page now works, but when I changed back to custom the problem is still there.
This is weird because only one page does not seem to show, every other page works fine and also there is no problem on the live version.
I ran out of solutions can any one please help?
This may be caused by the permalink or .htaccess
check the url of your page if no issues on URL then
Follow this steps once:
Go to settings-> permalink-> set it as default ->Reload or refresh
Then again now Go to settings-> permalink->postname
Your .htaccess will get update with the permalink.
This could be a problem with htaccess. When using the query string urls in wordpress, no htaccess is required, but for anything else Wordpress uses mod_rewrite.
Is htaccess turned on your localhost Apache server? In httpd.conf, AllowOverride All should be turned on in your active directory.
Is Wordpress able to create new files? Insufficient permissions might prevent it from creating the htaccess file.
Finally, check that your links are pointing to the right place. Sometimes the problem is as simple as a misspelling in your link ;) Good luck.

Automated 301 redirect for any missing pages within specific directory

I am trying to help a friend move a Wordpress site to a new server. However, it has many old blog pages that he'd like to have deleted.
Instead of doing a 301 redirect for each and every blog that is about to be deleted back to the blog main page, is there a way to automatically create a 301 redirect for any of the missing pages of that directory only?
For example, any page that does not exist at www.website.com/blog/... would be automatically redirected to www.website.com/blog/ (not homepage)
However, for any other page such as www.website.com/otherdirectory/... would be treated as a regular 404 page.
Hope this makes sense.
We have Urban Giraffe's Redirection plugin installed for one off redirects already. Would be super if the other blogs to be deleted could be fully automated.
Thanks in advance.
Found my own answer (sort of) - hope this can help others:
Auto Redirect 404 in 301 for Trashed Posts
http://wordpress.org/plugins/auto-redirect-404/
There are a few caveats though. This plugin monitors what you are about to delete and then automatically creates a 301 redirect. Note that this does not help with already deleted posts.
Note that I have installed this, but I have now removed it after doing all of the deletions. Once I deleted all the unnecessary posts, it created a list of the 301's. I have copied this list then imported them into the Plugin below so that it can be managed by 1 plugin. Also, the issue I have with this plugin is that it also monitors media and pages. This means that if you delete a page (ie ...com/test/) it will make a redirect - however, if you create a page again later with the same URL (ie ...com/test/) that page will no longer be visible as the redirect has been created in a table of your database. This plugin does NOT let you undo a redirect. If you deactivate the plugin, the 301's will stop working so that is the only way to stop the redirects. All or nothing.
To manage other 301's and to turn on and off redirections for single pages, I use:
Wordpress Redirection:
http://wordpress.org/plugins/redirection/
This will allow you to add 301's for other urls. This also allows you to import a CSV. I have created a CSV with the list created with the above Plugin and imported into this for better management.
I have also turned off "monitoring" in the options section (Don't monitor) so that it will not accidentally create a bunch of unnecessary redirects. For example, if you create a blog post with this url: ...com/test/ and change it to ...com/test2/ it will automatically create a redirect. This means that later in the future, if you create a page ...com/test/ you will not be able to view it. It will always redirect to ...com/test2/. This kind of automation can be troubling if you forget this monitoring is on.
Hope this helps.
If anyone knows of a better way to automate any missing page from a particular directory, please let me know.

Changing the URL of a wordpress site

I have a wordpress site at http://myname.myprovider.info and I just bought the domain http://www.myname.com
Ive tried to change the URL in the backend at "Setting > General" both fields WordPress Address (URL) and Site Address (URL) with http://www.myname.com. The moment i click save, Im automatically logged out of the backend. If i try to log back in, I get a white screen.
The only way to log back in is to add in the config file the following line:
define('RELOCATE',true);
If then I go back to "Settting > General" I see that WordPress Address (URL) still has the http://myname.myprovider.com and everytime I try to change it again, the loop starts again...
What can I do?
you cant just change the url in wordpress ... you would need to move all the files to your new host
you can facilitate this in wp-admin
under tools select export and follow the dirrections
then setup wordpress on your new host
and goto wp-admin and select tools import and select the earlier exported file
If you're moving from a subdomain to the main domain, you have to move files. See Moving WordPress « WordPress Codex and How to Move WordPress Blog to New Domain or Location » My Digital Life and check with your host; the URL structure "myprovider.info" may be problematic, whoever the "provider" really is.
I had a very similar problem some time back and I'm trying to remember what the source of the problem was. Until I do, here are some ideas you may or may not have tried:
(obviously backup everything first!)
Check your code (theme, scripts, functions.php, etc.) for any instances of the old URL. Sure, we all know better than hard-coding the URL but...
Do a search through your WordPress database for the old URL. Carefully (very carefully!) replace it with the new one. In my experience some plugins aren't well behaved when it comes to storing the web site URL in the database.
Try disabling all plugins to see if one of them is causing a problem.
I assume you've set the DNS by hand, rather than your domain registrar putting in place some kind of forwarding?
After much tinkering, it turns out I didnt configure the domain properly :P Thanks for all the help anyway.

Resources