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

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.

Related

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.

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!

Permalinks no longer working

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?

Resources