# June 24, 2013 at 9:20 pm
I’ve created a custom 404.php for me theme but when I try to view on my local machine I just get a random web page rather than my 404.
I mean if I go to http://domain/notaurl
Do I need to write this into my htaccess like you would for a static site? Didn’t think I’d need to do that. It may well work on a live server not tested but how can I get working locally?
Cheers# June 25, 2013 at 2:01 pm
Sometimes, WordPress goes to a page that almost has the same URL. I’m not 100% sure why, I’ve seen it happen with my own sites, and it’s possible it did that because the page was renamed or something. For example, http://domain/some-link would exist, but if you’d go to http://domain/somelink it would go to the same page.
Maybe that’s what’s happening?
What do you mean with “I just get a random web page rather than my 404, is it really random? It changes when you refresh? Does it change the URL into the page you’re viewing/# June 25, 2013 at 4:12 pm
But when I enter http://mff-theme/aaa for example the URL switches to https://mff-theme/aaa (https) and this part of the URL mff-theme/about-us/aaa gets entered as a Google search and google throws results as if I’m trying to run a search.
Hope that makes sense.
Any ideas?# June 25, 2013 at 5:58 pm
This reply has been reported for inappropriate content.
What version of a local server are you running?
L / W / M / XX Amp?
The vhost config should be in your apache directory under:
Or something simlar, that’s where it is in my WAMP installation.# June 26, 2013 at 5:06 am
Just tried using the default permalinks and it still does the same. Also tried on a different WP install with default theme and still does the same so its obviously nothing to do with WP and all to do with my local machine set up with MAMP.
Anyone know what I need to change in my local set up?
You must be logged in to reply to this topic.