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

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

Related

How to fix wp-admin not coming in the url issue in wordpress?

I am working on wordpress website https://www.iskconujjain.com suddenly some issues are coming although I have not done any major change in the website.
wp-admin are not coming in any admin url.
I am trying to change the Permalinks setting but it is not saving.
All pages are redirecting to home page although in the url having another page path.
for solve this problem you must regenerate permalink-
For solve it go to Settings > Permalink and save it.
Let me know.

how to stop redirection in 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.

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.

wordpress .htaccess & .htpasswd issue

I have a strange issue here. My client site is suspended due to spam messages by one.com. After deleting the comments, the technical support guy told me to generate .htaccess and .htpasswd file by using one.com's support page and upload it into root. Deleted old files and uploaded the new files a per the supporting guy. But site shown an internal error, then the technical guy said 'delete' both files and try. Then the home page is loading but inner pages showing 404 error.
Anyone here have a solution for this? this is the site http://www.jayabhattacharjirose.com/
Thanks in Advance
This is a problem with permalinks. Try the one of the following three solutions.
1: Set your Permalinks back to default, if things start working as expected then try re-setting Permalinks back to what you want.
2: Try going in your Dashboard to Settings > Permalinks. You don't need to change anything on the Permalinks page, but just click Save Changes at the bottom. Then check your site to see if that fixed it.
3: Try changing options on the Permalinks page if you want to change the way the URL looks from p=### to the /date/page format or others.
Reset your permalink to default and then again set it your required permalink structure so that WordPress creates a new required .htaccess file for it.
And if you have backup of your project then try to use the old .htaccess file.

simple press permalink 404 error

I'm trying to use the Simple:Press forum plugin for WordPress. If i go into my sites Settings/Permalinks and select anything other than Default, I get a 404 error whenever I try to access any of the forums or user profile.
Does anyone have a workaround for this?
Edit: I should add this is on a Windows machine and I have added the Web.config file which seems to work fine for other pages
Is the proper .htaccess file being created when permalinks are enabled? Could be a directory not writable issue.
Depending on which version of Wordpress you have, this might be the fix. It's a mod rewrite error.
Right click on the Bookmarklet, and change
u=’+e(l.href)+’
to
u=’+e(l.href.replace(///g,’\/’))+’
A quick work around is to delete part of the URL in the pop. Delete after
http%3A%2F%2F
after the u=, up through the beginning of the domain for the website.

Resources