-
AuthorPosts
-
May 26, 2018 at 5:33 pm #962570
Hi,
I have started with my SEO optimalization and I am facing a problem. The problem is that I can only set “basic” form of WP permanent link (?page_id=xxx). It is not worth for browser searching. I would like to set “postname” form of permanent link, but if I do that, menu will stop work. Permanent links in current pages are transcribed, but after clicking on any button in menu at website I give only 404 error – page not found.
Could it be fixed by creating every page again with current “postname” permanent link setting? Or I can only use “basic” perma links.
Thank you for response.
Best regards,
Jakub.May 26, 2018 at 11:42 pm #962617Hey katak97,
If I understand correctly, you have created your menu while your site was using “plan” permalinks:http://127.0.0.1/2017demo1/?p=123
but when you changed your permalinks to “post name”
http://127.0.0.1/2017demo1/sample-post/
your menu items point to 404’s ?
I have tried to recreate this, but when I saved my permalinks, my menu items updated.
Perhaps I misunderstand.Best regards,
MikeMay 27, 2018 at 9:58 am #962669This reply has been marked as private.May 27, 2018 at 11:47 am #962681Hi,
I believe your .htaccess file is not getting updated or has a line error in it, please read: How to Fix WordPress Posts Returning 404 ErrorBest regards,
MikeMay 27, 2018 at 1:37 pm #962729Hey,
oh I didn’t even know about this file, thank you for response. I have read that article and watched the video and then found out that this file is missing in the wp files at FTP server. So I have created this file in FileZilla with name “.htaccess” and inserted the right code from site you have sent me -> I have got back to my WP admin page, refreshed and saved again “postname” permalink setting -> but the conclusion is same – still give me an 404 error page (excluding home page).
It is weird, because it gives the error as the page wouldn’t exist, but in browser is the same link as is the permalink in current page at WP admin. Still don’t know where could be the problem.
If you would have any more idea how to fix it, I will welcome it. If not, I have to be satisfied with a “default” permalink setting. Which is not the best option for SEO of course.
UPDATE: I have tried it also in my test webpage which is using Enfold as well. I have set permalinks to “postname”. I have created a page with some content. It gave some permalink, which worked when I clicked on it at admin page. When I set this page as Enfold home page and then I clicked to that permalink, it showed me an 404 error again. Just for information, I am not sure if it would be useful.
Maybe there is problem with WP installation, but I would rather found another way.Best regards,
Jakub.- This reply was modified 6 years, 6 months ago by katak97. Reason: UPDATE
May 27, 2018 at 7:21 pm #962866Hi,
Typically the .htaccess is a hidden file when using FTP, sorry I forgot to tell you.
In Filezilla look for this setting
See if this shows you two files now, I can’t imagine you had no .htaccess file, it’s pretty important.
If this doesn’t help please include ftp access in the Private Content area.Best regards,
MikeMay 27, 2018 at 11:34 pm #962899This reply has been marked as private.May 29, 2018 at 1:29 pm #963656Hi,
Thank you for the login, I have looked and it seems the htaccess is not being used. I believe the your webhost has not enabled “AllowOverride” in your Apache server, or the server needs to be restarted to take effect.
Please contact your webhost and explain that the wordpress permalinks rules in the htaccess file are not working, and ask if the “AllowOverride” in enabled.
Or if they can look at the error log to see what is going on.Best regards,
MikeJune 14, 2018 at 2:13 pm #972818Hey Mike,
thank you for that response. It helped and permalinks are working now!
Keep going with your work guys. It is amazing!
Best regards,
Jakub.June 15, 2018 at 3:37 am #973069 -
AuthorPosts
- The topic ‘SEO optimalization by permanent link’ is closed to new replies.