Wordpress giving 404 error after url change - wordpress

Just recently setup Wordpress on Server 2016 through IIS. Everything works fine at the defaults, with localhost as the defaults. However, whenever I add bindings to the site, it begins to not work and will give an error.
Error code is here.
Permissions seem to be fine, unless I missed an important step.
Anyone have any ideas on how to fix this? I can no longer access via localhost, the IP, or the domain name.

You need to update Permalink.
go your Dashboard -> Setting -> permalink
click on save change button. Here you can change URL structure for your permalinks and archives.

Related

Open /wp-json response with "forbidden_access"

I installed a customer project on my local machine.
I want to create a new REST API route.
On the live website, i can see the wp-json data.
But when i call the wp-json on localhost, i get this message:
I have a couple of wordpress websites on localhost and everyone work without any problems. Instead of this wordpress installation. I already uninstalled all plugins and the message still appear.
Has anyone an idea to solve this problem?
This could be a permalink issue, go to Settings > Permalinks and change the setting to "Post name" and save settings, then check if you get the same issue or not.

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.

Wordpress site - too many redirects when selecting link

I have looked at similar questions but still receive the redirect error.When landing on a homepage URL the site resolves and displays for example http://www.test.co.uk . When selecting any link ie. http://www.test.co.uk/products the browser throws a "Too many redirects" error and the site become unusable. The only way I can get it back up is by clearing cookies and cache and trying again. What I find really confusing is that copying the http://www.test.co.uk/products link or manually typing the URL in resolves the URL correctly and I don't get "too many redirects" error. It only happens when I select a link.
I have tried the following:
Renamed the "plugins" directory to "plugins1" to disable the plugins
Reverted to the default wordpress ".htaccess" file
Ensure the site settings URLS matched in wp-admin area
SSL is enabled on the site but not configured to be used anywhere, all links (that I'm aware of reference http://)
Checked any redirects on the hosting via CPANEL (none exist)
Added these to the wp-config file
define ('WP_HOME','http://www.test.co.uk');
define('WP_SITEURL','http://www.test.co.uk);
I'm not sure whats changed in the last couple of days but we think a plugin got updated. Would disabling the plugins prove that its nothing to do with plugins?I'm new to WordPress so apologies if I got some terms wrong.
Any suggestions I could try looking at would be helpful.
Thanks
try to set Home url and site url to http://www.test.co.uk from your WP admin panel

Unable to change site's URL in Wordpress plugin.

My host is nearlyfreespeech.org. I contacted them with this message:
"My problem is, when you navigate thru the menu on my site and click on the various links, I need the navigation bar to say http://www.paulaneeley.com/education-and-experience/, instead of paulaneeley.nfshost.com/education-and-experience/. How do I change all the links from the subpages I made on my site from paulaneeley.nfshost.com/etc to paulaneeley.com/etc ?"
And they responded:
"Take a look in the WordPress dashboard at the settings page. Probably one of these settings isn't using your own domain:
WordPress Address (URL)
Site Address (URL)
Once you find and fix that (so neither of them uses the paulaneeley.nfshost.com addres, this problem will likely disappear. "
So I changed the site's address to paulaneeley.com. I then got this error:
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect.
File(/) is not within the allowed path(s):
(/f5/paulaneeley/:/nfsn/apps/php53/lib/php/:/nfsn/apps/php5/lib/php/:/nfsn/apps/php/lib/php/)
in /f5/paulaneeley/public/wp-admin/includes/misc.php on line 133
Warning: Cannot modify header information - headers already sent by (output started at
/f5/paulaneeley/public/wp-admin/includes/misc.php:133)
in /f5/paulaneeley/public/wp-includes/pluggable.php on line 881
I then tried to navigate back to my dashboard and I couldn't access it anymore! My browser gave me this error:
too many redirects occurred trying to open "http://paulaneeley.nfshost.com/wp-admin/".
This might occur if you open a page that is redirected to open another page which is then
redirected to open the original page.
I then read this article:
http://codex.wordpress.org/Changing_The_Site_URL
And tried both the functions.php method and the phpmyadmin method to return back to the original paulaneeley.nfshost.com, which I believe I both did correctly. My site works fine, but I still get an error message when I try to access my dashboard. At the least, I would like to get my dashboard back.
Maybe you've done all the things right, but the nameservers of nearlyfreespeech are stil not forwarding users to your site.
Test for yourself:
http://www.paulaneeley.com, opens just fine but when you remove a www. prefix, the site doesn't opens. A simple ping test to http://paulaneeley.com reveals that nearlyfreespeech's name servers do not have a record for http://paulaneeley.com. Ping returns with an error Ping request could not find host paulaneeley.com. Please check the name and try
again. Indicating there are no DNS records for http://paulaneeley.com.
So, contact them again, and this time tell them to fix this by registering http://paulaneeley.com in their nameservers. And if they ask for money, don't pay them any, because http://paulaneeley.com and http://www.paulaneeley.com are the same sites and www. doesn't mean anything that they should charge for.
And best of luck for your business, maybe one day I'll drop by and will get my hair styled, your work seems pretty cool. :)
And here's your login page,
http://paulaneeley.nfshost.com/wp-login.php
http://www.paulaneeley.com/wp-login.php
Apparently, you've edited your .htaccess file(by mistake?) which used to redirect http://www.paulaneeley.com/wp-login/ to http://www.paulaneeley.com/wp-login.php
In order to solve the problem, you will need to change the setting of your site's database where the root of your domain is found. You can do this by running a mysql update command.
Then, you can change your .htaccess setting.
Another way is to just install it all over again. Just make sure you have a backup of your data, media, and template. This time, make sure that you install it from your domain http://www.paulaneeley.com. Or http://paulaneeley.com. You can only choose one.

simple press permalink 404 error

I'm trying to use the Simple:Press forum plugin for WordPress. If i go into my sites Settings/Permalinks and select anything other than Default, I get a 404 error whenever I try to access any of the forums or user profile.
Does anyone have a workaround for this?
Edit: I should add this is on a Windows machine and I have added the Web.config file which seems to work fine for other pages
Is the proper .htaccess file being created when permalinks are enabled? Could be a directory not writable issue.
Depending on which version of Wordpress you have, this might be the fix. It's a mod rewrite error.
Right click on the Bookmarklet, and change
u=’+e(l.href)+’
to
u=’+e(l.href.replace(///g,’\/’))+’
A quick work around is to delete part of the URL in the pop. Delete after
http%3A%2F%2F
after the u=, up through the beginning of the domain for the website.

Resources