Wordpress permalinks problem - wordpress

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>

Related

WordPress Permalinks Issue

So we installed a fresh version of WP. Thanks for the help earlier.
The last issue we cannot figure out is why we cannot navigate the site.
Basically, when we try to navigate internally into the website we imported into the sandbox, it gives the following:
The requested URL /page-name/ was not found on this server.
If it's the ugly / default Permalink, we can view the files under pages, but we cannot navigate even. The pages were set to /page-name/, which I'm pretty sure is /%postname%/. I've scoured online. I've put up a blank .htaccess file, changed the permissions to 666 for writing purposes.
What I've tried included:
Replacing the .htaccess with a blank (I renamed the old one to be a backup) - it generates information to the file.
We can view pages manually that way, but we cannot navigate through the "live" site with it running this way.
Is there a second source I should be referring to for updates on the .htaccess file? Is there tricks online I may have overlooked? Any input would be appreciated!
Thank you!
Thank you Milap for the comment above! It turned out to be the AllowOverride being false. Apparently this have to be enabled in order for it to work. To those who plan to make this change, restarting your server is required.
Please refer to section AllowOverride Not Enabled section of their documentation: https://codex.wordpress.org/Using_Permalinks

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.

Woocommerce REST API 404 error

Since woocommerce released the 2.1 version with REST API feature, I tried to use it: I activated the API on my woocommerce admin panel but when I try to call the curl: http://www.mydomain.com/wc-api/v1/
the response is a 404 file not found error.
I tried to check everything in internet, I've read woocommerce docs but I cannot figure out what I have to do: probably some setting in the server apache or php... I don't know..
Thank you
Try going, on the Admin Panel, to Settings -> Permalinks. On Default Settings radio group, select the "Post name" one. Save the changes.
Worked for me; hope for you too. :)
Source: this blog post.
EDIT: Website is not available, so I put its Wayback Machine URL.
I was having this same issue. I had forgotten to turn on the pretty perma links, but doing that didn't solve it for me.
I also had to update my apache virtual host file because the AllowOverride was defaulted to None.
<Directory /var/www/wordpress/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Once I updated this, and reloaded the Apache service, the API worked for me.
It was simply a matter of enabling URL rewriting in WordPress. Basically, go to Settings -> Permalinks and make sure the first rewriting option is set to Posts Name.
Apart from answer shared above: Settings -> Permalinks. On Default Settings radio group, select the "Post name" one. Save the changes.
I also had to manually update .htaccess file to reflect the changes I made (permalinks to "Post name", and the little Wordpress help text shown on the bottom of the page was really helpful:
If your .htaccess file was writable, we could do this automatically,
but it isn’t so these are the mod_rewrite rules you should have in
your .htaccess file. Click in the field and press CTRL + a to select
all.
Basically copy the new mod_rewrite rules as instructed by Wordpress above and manually update your .htaccess file! doing this worked for me!

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.

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

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/

Resources