Need help changing Permalinks in Wordpress, I've tried everything - wordpress

I am having problems getting my Permalinks changed with my Wordpress instance. I have about 5 blog posts which were created using the default "postid" permalinks. I am now trying to change my permalink to %postname% but I cannot get it to work. Any time I change the Permalinks in Wordpress all my old posts throw 404s. I have tried 4 Wordpress Permalink plugins to resolve this issue but I cannot get any of them to work. I have also updated my blog's .htaccess file to include the necessary information. Finally I deleted all my original posts and changed the Permalink, then recreated them and it still did not work. Please help, I don't know what else to try! Thanks

Be sure there is only one wordpress rewrite block in .htaccess. And you may need to go into the wp_options table in the database with phpmyadmin and clear the permalink setting there. Once in a while permalink settings get "stuck" in the wp_options table and wordpress can't write the new setting to the database, even though WP writes the changes to the .htaccess file. Database Description « WordPress Codex
Edit 3/03/10
Turned out to be mostly CentOS not playing nice with Wordpress Permalinks, but there are documented fixes via Google.
Edit 3/02/10
If your .htaccess is writable and changes are being saved and you can see them, then permalink_structure field in wp_options should not be blank. Did you disable and delete all plugins relating to permalinks and start from scratch? Are you on Windows or Linux hosting?

I had the exact same issue, and it's subtle. The apache directives need to go in a <Directory> container. If you are like me, you had your directive in a <Location> container, thinking that <Location /> would cover the entire site from the root, recursively.
This did the trick:
<Directory /path/to/wordpress>
AllowOverride All
Options FollowSymLinks
</Directory>

Use deans permalink migration plugin and you will easily change your permalink structure without breaking any links within a minute. This plugin is a life saver for those who are thinking of changing default permalink structure and thinking of migrating from blogspot blog to self-hosted blog.

I know this is an old thread but I ran into this issue last night. I found a post here http://www.mobiledataup.com/fix-wordpress-permalink-404-error-with-centos-6/
which was very help and fixed the probem for me.
There was an extra section that had options to turn on AllowOverride.
Worked like a charm.

Reading this article will help a lot with permissions and PHP handlers. I had some of the problems here... just thought I'd share it
http://www.itsabhik.com/how-to-increase-size-of-var-tmp-centos/

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.

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.

WordPermalink not working after server tran

I've transferred our website http://www.pacificluxuryliving.com from powweb to godaddy. It's a wordpress based website.
The problem is the pretty permalink is not working. It shows 404 error. Interestingly, If I add new post or new page, the permalink work. But all old permalinks not working. I can edit old pages and change the permalink (from edit page). If I change the old permalink to new one, then it also work.
I disabled pretty permalink + deleted .htaccess file. Then enabled pretty permalink from wp admin > settings > permalinks (it automatically restored .htaccess);
Tried many other ways, but nothing worked.
Thanks,
Farhad
Check the following
Do you have mod_rewrite enabled?
Do you have any caching Plugins? If yes then disable them.
Is FollowSymLinks option enabled?
Also post the contents of your .htaccess file and the pretty permalink format that you want to use.

Wordpress permalinks problem

I changed my wordpress permalinks to %pagname%. Prior to doing this i posted two blog entries (the site is brand new). My static pages navigate fine after the changes but when you click on my posts you get 404'd. Has anyone else had this problem? Thanks.
isn't the permalink structure supposed to be
/%postname%/
with that the posts will have a nice url, and not using pagename, or pagname as you have it?
Open your .htaccess file and check if anything is written, if so highlight it all and delete it, wordpress will fall back to the original default state,
then within the admin->settings->permalink section select custom and paste in that, and click save, if wordpress reloads the page and the htaccess info is pinned to the bottom of the page then copy and paste that to your .htaccess file, if its not then its been written to your file already...
You probably fixed it by now, but try adding "/%postname%/" after "/%pagename%/. I was having the same problem but changed mine to read /%pagename%/%postname%/ and it seems to work now.
check .htaccess file permission has 777
I did like that and works.
Reset your permalinks and make sure .htaccess is writable: Using Permalinks « WordPress Codex
Check your apache configuration and verify that for the directory in which you store your Wordpress installation you have following settings enabled (probably there will be more, but you need at least these):
<Directory var/www/>
FollowSymLinks
AllowOverride All
</Directory>

Resources