Hey everyone! I was hoping someone could give me a hand with how to do this. We just launched a new site that was a revision of an old site. One standing issue I have is that one of the pages that shows up on a Google search leads to something like “services.php”. Since WP is rewriting the URLs, that particular page with the php extension is hitting the 404 error.
We’ve placed some stuff in the 404 page to make it look a little more inviting to get anyone who encounters the page back into the main areas of the website, but I’m wondering – is there a quick and dirty way to just redirect that one page to the right WP page until Google indexes the new page? Or do you think that would do more harm than good SEO-wise?
The best way to do this is using a 301 Redirect in your .htaccess file – however, I’m unsure if this file is often over-written by wordpress. Is there potentially a plugin that might allow you to edit htaccess and save it permanently?
Alternatively – you could create a PHP page at the inbound URL and then redirect using;
Thanks for the info – really appreciate it! My thinking is that using the permalinks you do override it but maybe you can set an exception and redirect one page? I’ll have to toy around with it and see.
You know, that actually worked just great, thanks andy! The only thing I’m worried about, and I can’t seem to get a solid bit of information on is if that will hurt any of the SEO until Google does it’s thing. So I’m just crossing my fingers :)
If Google is yet to re-index the site then it won’t realistically have any impact on the SEO side of things. Ultimately it’s similar to calling content from a database, so if a search engine spider/bot goes on the page it will load like it does in your browser.
I’d recommend getting ridding of it as soon as the search engines do update though just to save you any headaches moving forward.