Permalinks no longer working - wordpress

I have a nightmare scenario where -- just getting ready to launch a site -- permalinks are suddenly not working and it breaks CSS and can't find PHP templates. I have the permalink structure set to "http://domain.org/%postname%-by-%author%/" but when I click on a post the permalink only calls postname, for example: http://domain.org/%postname%
My host provider checked the htaccess file and can't find any problem. I can't see one either. I have searched around and see many Wordpress users having permalink problems but they all seem to have different solutions. I am at a loss. Any help would be greatly appreciated.

Click update permalinks after moving worspress. Should fix you issue :) Usually in the database the old structure is saved and the new one doesn't work, even if your htacess is ok you should still hit the update permalinks button :)
If that doesn't work try debugging with http://wordpress.org/plugins/monkeyman-rewrite-analyzer/
:)
I am curios why is the css broken. That doesn't depend on whether your permalinks are broken or not. :-S
Have you installed any plugins before it failed?

Related

Private or Draft status posts in Wordpress are still visible to public?

I have set my posts page to both private and draft statuses, but whatever I do I can still access it when not logged in! I have tried all browsers/clearing cache/deactivating all caching plugins etc. I am also just using the standard WordPress query & loop ... Does anyone know why else this might happen?
Update:
Someone helped me to solve this issue. She spotted 2 issues. According to her "The issue was with the mu-plugins installed in the file manager and also the .htaccess"
The .htaccess was renamed as .htaccess_old (I figured out it was created by nitropack plugin). She reset the .htaccess file to its default values but didn't delete the old .htaccess file she just renamed it .htaccess_old. If ever needed in future.
It's a helpful article on how you can reset .htaccess or create a new one.
https://www.inmotionhosting.com/support/edu/wordpress/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors/
Secondly, she manually deactivated and reactivated the plugins from the Wordpress dashboard. And just after that, everything is working perfectly. (Another plugin she pointed out that was causing the problem in my case was elementor-safe-mode.php)
Please thumbs up, if it helps you :)

WordPress permalinks Issue on Localhost

I have this problem, so far i change or permalinks or delete .htaccess file and everything worked but this this this is not the issue. Have broken links on few link with 404 error. Home page i most of the links works but 3-4 of them don't. Tried so far everything that I thinks should work or worked before. Deleted .htaccess file, disable plugins and themes restore to default, change permalinks structure, my WAMP server have enabled rewrite module on for apache, even in htppd.conf have AllowOverride All.
I dont have any ideas left and I would appreciate if someone have some new idea or something that I have missed so far.
After days of searching for the problem finally find it. It was conflict with plugin and my custom added css was conflict with one plugin same name and this was causing the issues on links.
Considering that I lost time for this i needed to share this info with all of you. Usually permalinks problems were solved with changing settings for permalinks but this was something else, and probably I'm the only one that have same name in css with one plugin and this cause the problem.
Hopefully this will help someone if come to same or similar issue.

Strange Permalink Issue

I've been dealing with a really strange Permalink Issue on my WordPress site which runs Sage 8.5.1, previously setup by another developer.
Yesterday, I made a new homepage live on my site within Settings > Reading, and after doing this the permalinks within my site seemed to stop working completely. I was using the setup: /%postname%/, when switching to the generic: ?p=123, all my links worked again.
I did quite a lot of testing, checking .htaccess file, deactiving plugins, going back a code version and other things.
This morning, the last thing I tested was activating the generic WordPress theme and then testing my permalinks (/%postname%/), and they worked. I then reactivated by original theme built on Sage 8.5.1, and all my links worked again with the original permalinks setup.
Has anyone come across this before? Its very strange, and I can't see why deactivating the theme, and then activating it would fix the problem.
Turns out it was something to do with a custom post type I setup. I removed the custom post type, and created a new one based on the WordPress codex and that solved the problem.

WordPress Pretty Permalinks

Pretty permalinks are no longer working, I've tried all the obvious things;
Re-save permalinks
Delete and regenerate HTAccess
Disable all plugins
Restarted Apache
Cleared browser cache (although this issue happens for everyone)
Checked the tables via PHPMyAdmin
Enabled WP debugging, nothing is showing
The pages are there and work fine if using plain links.
This is the only site that has the issue, other sites running on the same dev server are fine.
The issue is only apparent in recent versions of the database, so I do have a working version that could be used for debugging, but I'm unsure what to be looking for.
Any help would be greatly received!
This was caused by a CPT for which rewrites did work before.
Disable the CPT rewrite option and now things work.

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