Reactjs build URL not working in wordpress - wordpress

I am creating my website's career section in reactjs and rest of the part in wordpress. After creating react build I include build folder with the name of careers folder in root directory of my website which is in wordpress. When I go to the career section then everything is working fine until I refresh the page, it is throwing 404 error. Getting 404 error after added anything in URL. URL working fine on this http://mywebsit.com/careers/
If I click on search button on my career page then listing is appear with URL formation like http://mywebsit.com/careers/jobs-in-noida
This URL working fine, showing results but when refresh page then shows 404 error.

Related

Removed Images showing Server 404 instead of website 404 wordpress

My website had an image /wp-content/uploads/2020/12/abc.jpg.webp
I deleted the image now it's showing a blank page with text
"404 Not Found
openresty/1.17.8.2"
I have installed the 404 to 301 plugin, it is supposed to redirect to the homepage. all other redirects are working fine but for images and attachments, it's not working. the white page that appears is not from my theme. please check this image
Redirecting 404 pages to homepage is an SEO anti-pattern: https://yoast.com/seo-anti-patterns-301-redirect-all-your-404s-to-your-homepage/
Instead of redirecting 404s to homepage, try to create a 404 page with a better design. Since you're using WordPress, there should be a bunch of plugins and themes that let you do that.
(BTW, if you really want to do that, try looking up your plugin settings or simply switch to another "404 to 301" or redirect manager plugin that support file/image redirects)

Wordpress Database error P1IMBOONPC showing on front page

My wordpress site is showing this error: Database error P1IMBOONPC
on every page I visit.
It's unfindable on google.
The website works just fine is there any way to remove it or just hide it.
This is how it looks on the website

Facebook Instant Article error 403

I recently implemented Instant Articles for WP Plugin on my Website. Everything works fine except for the download of the uploaded images.
Here is how the error looks like:
General Errors: Could Not Download Image: Your image from URL http://www.theincentral.com/wp-content/uploads/2016/08/CnJ4p4WVYAAfC4O-575x337.jpg could not be downloaded with an error code 403. Please check to make sure image at http://www.theincentral.com/wp-content/uploads/2016/08/CnJ4p4WVYAAfC4O-575x337.jpg is active and loads correctly at that URL.
The image in the URL is accessible just not by the Instant Article. The result is that when the Article is published, the images are not loaded (They work fine on the website).

Static Homepage Not Working on Wordpress Localhost

Recently copied over a WordPress live site over to localhost and I am having trouble getting my homepage to display correctly.
On my live site and local version, the static page is set to "Home" (home.php) in the Reading setting.
On my live site, using Theme Header Check, it states the
Template relative path: themes/custom-theme/home.php
which is correct.
On my local version, it states
Template relative path: themes/custom-theme/page.php
Which displays nothing because we do not use page.php on live site.
Everything else is working on my local copy just fine. The homepage loads fine, header, footer, backend, etc. The only issue is the homepage is directing to page.php instead of home.php for the content of the homepage.
Anyone have a solution for this? I am unable to make edits to homepage without getting this resolved.
I got this working after some fiddling around.
Apparently when I transferred over to local the template for 'Home' was reset to default-template.
So I simply went to my pages, clicked edit Home (front page), and set my page template in the page attributes to the proper template file.

index.php in Wordpress showing PHP source code after moving site

I moved my site to a new server and it all went smooth, but now when I access the home page I get this weird behavior:
When the URL is typed, the PHP source code of the file index.php is shown, not the normal content.
If I type the URL of any subpage, I can see the subpage perfectly, and
If I type www.myurl.com/?preview=true I can see the home page perfectly (this one has me lost).
The old version of the site was made with Wordpress too and it was working fine until I replaced it with this new installation.
I have no idea what is going on, any help will be greatly appreciated.

Resources