Wordpress permalinks not working on Webmin - wordpress

I have a Webmin, which is CentOS server, for hosting Wordpress sites.
But my permalinks are not working. I have give a persmisions to Wordpress, so I can control permalinks from WP.
WP saves a configuration to .htaccess and also all link in my menu change to permalinks I choose, but ofter click on those links, I get "Not found" error.
If I switch WP back to no permalinks, everything works ok again.
Actually, I don't have any idea, what else can I try, and why this is not working. But I suppose there is some setting on the server itself, because, this is not working on any my site on this same server.

You need to check if your apache server has mod_rewrite extension enabled.
That extension is managed short/permalinks for websites like Wordpress.
You can check it by creating short file 'phpinfo.php' in the wordpress folder:
<?php
phpinfo();
?>
Navigate to the http://yourwebsite.com/phpinfo.php and look for the 'mod_rewrite' in the output.
If you can't find it you need to setup it first, take a look here.

Related

Why is WordPress redirecting to localhost

I have a WordPress website running on a server, using a docker container (with port forwarding 8001:80), and an Apache server with proxypass to redirect "demo.travel-itineraries.com" to "localhost:8001".
My problem is that WordPress redirects to localhost instead of using the website URL I specified.
My WordPress configuration doesn't contain any "localhost" occurrence (I tried SELECT * from wp_options where option_value like '%localhost%'; and there is no occurrence of localhost)
The WordPress address is set correctly
The homepage is working fine (http://demo.travel-itineraries.com/) but the second page isn't. If you check the link in the navbar, it's a link to "http://demo.travel-itineraries.com/les-joyaux-de-ladriatique-a-bord-du-pacific" but WordPress redirects to "http://localhost/les-joyaux-de-ladriatique-a-bord-du-pacific".
I checked with curl, and the RedirectedBy header is set to "WordPress".
Do you have any idea why it keeps redirecting?
Thanks
Worth a try: There is an extremely old bug in Wordpress which causes problems in permalinks (i.e. pages are not found) after moving the site to another server or directory even though everything is set correctly.
And there's the also-extremely-old fix for it to go to the backend, open the Settings > Permalinks page, change any one little detail, change it back again and click "save changes". And I've heard from others that often it's even enough to just open that Permalinks page without changing or saving anything.
I just had that again in the current version (5.8.3) – same problem, same fix. I really wonder why that bug still exisits...
I noticed Yoast is installed, the premium version of that plugin automatically creates redirects, you can check those by going to SEO > Redirects in the back-end.

404 error after putting WordPress on my vps server but homepage does work

So my WordPress site worked perfectly on my localhost, until I transferred it to my Windows Server machine. Now, only the index still works; the other pages give me a 404 error.
I have already tried changing permalink options and other fixes, but nothing has worked.
How I can get my other pages online?
Its too easy
go to wp-admin in your WordPress.
in dashboard go to settings.
in settings go to Permalink Settings.
in Permalink Settings if your Common Settings set on Day and name or anything else change it to Plain.
save the setting and go to your web pages.
if every things work correctly back to Permalink Settings and change Common Settings on Day and name or anything you want.

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.

WPMS Domain Mapping and Permalinks Error

I have recently started working with Wordpress MS (the new WPMU). I have just installed everything and have a few different domains working off of the same Wordpress MS install.
I am using the WordPress MU Domain Mapping plugin to handle different domain names.
Problem I am having is working with permalinks. I would like the URL to display something like this http://blakebullis.me/sample-post/ ... but whenever I change the permalink settings to be more SEO friendly I get a 404 error. The page only works properly when I use the default permalink settings http://blakebullis.me/?page_id=2
Problem has been solved. I used this article to figure it out http://wordpress.org/support/topic/wordpress-mu-domain-mapping-plugin-052-mysteriously-still-not-working
Within my /etc/apache2/sites-available/[domainname] ... I changed the "AllowOverride None" to "AllowOverride All" for my configuration

wordpress page permalink is not working on local

I have wordpress website on server, created pages and that's working fine, but when I download wordpress files and DB on local and want to run with localhost, permalinks for pages are not working.
It seems this is an old post, but this might help others that encounter same error.
Select:
Apache –> Apache Modules –> and that will display the lists of available modules.
Now just check rewrite_module.
source from WordPress Custom Permalink not Working in Localhost
Hope that helps.
Sometimes when copying from one server to another, wordpress' permalinks goes a little screwy, try setting them back to default (using the admin panel) and then setting them again to your desired permalink structure (being sure to apply the changes each time).
you need to go into the database and change a few options.
Goto your phpmyadmin installation and navigate to wp-options table. Change the siteurl and home options to your localhost address.
Wordpress needs these database tries to build your permalinks. If they are wrong, then it will direct your links to incorrect locations.
You can simply fix this by doing the following:
Go to settings in your WordPress site.
click on permalinks ( You will see the URL structures of your newly configured WP site. (if it shows your original website values, go to settings-> general and set your local site URLs
Don't do any changes, just click on the Save button.
Refresh your local site and click on your page link or post.

Resources