how to stop redirection in wordpress? - wordpress

when i upload any things (media, post etc). then Wordpress panel redirect to the side of domain name with custom link and show the 404 error page.
https://domainname/#custom/
please help

Make sure this is not being caused by a plugin conflict.
Deactivate all activated plugins and try the action again. If it gets posted without redirecting you, a plugin might be the cause.
If this is the case, reactivate the recently active plugins and go through the process again, but this time, deactivate the plugins one after the other while you post new items. When you find the culprit, you can uninstall them and replace them with another plugin that does the same job.
If a plugin isn't causing this, you can rename your current .htaccess file to something else, then create an empty .htaccess file on the server. After doing this, go ahead and reset the permalinks.
See if the above suggestions solve your issue. Let e know how it goes.

Related

wordpress website is redirecting to blink.piterreceiver.ga/fast.php?t=j&id=658-3474568568-23-458578434

Wordpress website Awannews.fr is being redirect to blink.piterreceiver.ga/fast.php?t=j&id=658-3474568568-23-458578434. Can someone please help how can i figure out whats the issue.
I recently encountered the exact same redirect happening on a WordPress website I worked on. What worked for me was disabling a plugin that came with the theme I'm using on the site. In my case, it was an outdated version of the "WooCommerce Dynamic Pricing & Discounts" plugin that was infected with some malicious code.
Once I found the specific page the redirect happened on, I opened Inspect Elements in the Browser and looked at the changes to the page while it loaded in. There I managed to catch a glimpse of a <div> element loading in just before it redirects (the element id was pointing back to the plugin I ended up disabling).
First, I would recommend to:
Make sure all of the WordPress plugins are up to date.
Try to disable one plugin at a time and then refresh, check the site itself in another tab or window to see if the problem still presists.
If the 2 steps above don't help, then you could try to narrow down the cause/source by going around your WordPress site and try to catch at which point or which specific page the redirect happens. That way you could have a better idea of where to look or where not to look for the cause.
I hope this is helpful and you can post an update on how it went.

Wordpress gives 404 in any page with any kind of permalink, but when I change the theme it works. How to fix?

I have a wordpress theme that has the page.php, but it gives 404 in any page that I create, even using the plain permalink (http://localhost:8080/?page_id=33141).
But when I change to wordpress theme the page works.
I think it is not about htacces, because none of the themes should work.
Could the theme redirect all pages to 404? I didn't find anything in the code.
Could someone refresh my mind?
Thanks.
I am running it in a docker container but I dont think it has influence because the other theme works.
Try go to setting->permalink and click save and clear cache and fresh page.
go to settings-> permalinks and save the permalinks and also clear the cache. sometime it is occurring due to cache.
And also sometimes it may happens due to permission is declined from cpanel
Go to cpanel and then right click select permission and change the permission. It may be helpful

How to fix Redirect URL is not valid ! error when trying to access wp-login.php?

When I try to access the wp-login.php page, I get the following error:
"Redirect URL is not valid !"
I've tried everything here
clear cookies
deactivate all plugins
revert back to the Default Theme
delete .htaccess file
update site URL
But none of the above did anything. I thought that deactivating all plugins would solve the issue because not too long before this issue started I had just installed and begun configuring the WP Cassify plugin. However, when I went to rename the plugins directory, I did not see the WP Cassify plugin listed, which is weird.
Does anyone have any suggestions as to what else I can try to fix this issue?
I fixed this by renaming the wp-cassify plugin (and essentially deactivating it by doing so).
That simple!

Issues with Wordpress permalink /index.php/%postname% instead of %postname%

I've tried to change my permalinks from example.com/index.php/postname to example.com/postname, but nothing has worked. When I change them in Wordpress, I get 404 errors for example.com/postname. I've noticed this is a common issue, but none of the suggested solutions have worked.
Mod_rewrite is enabled on the Apache server. The .htaccess file has been updated. Still nothing. In the meantime, I'm wondering if I could do a redirect that would send anyone with the example.com/postname link to example.com/index.php/postname. What's the best way to do that?
You generally need to save permalink structure twice. If that doesnt work install wp 2017 theme > delete your theme > reinstall your theme from scratch.
If you have cloned your website - you should go to the original site, back it up and then deploy it! a good plugin to do this is updrafts if you don't know how to do it mannually. Don't use a cloning plugin - some plugins/themes don't work with them.

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.

Resources