How can I redirect a page that does not exist anymore? - wordpress

We recently moved our website to WordPress. The old site was built in plain old html. We are no longer hosting the pages ending in .htm but there are still links to them that exist on the web and it's returning 404 errors. I want to direct the old pages that ended in .htm to the new page that is now living in WordPress. I have tried a handful of SEO redirect plugins in WordPress which none have seemed to work. How would I go about doing this if the page no longer exists on the server?

You can solve this with mod_rewrite.

Related

How to redirect (or bring back) /services/ pages after migrating from Wordpress to Shopify?

My problem is that my client has migrated from Wordpress to Shopify, and there were some important pages on the site under the /services/ folder. I wanted to redirect them to their new pages after the migration, which are /pages/ pages.
Shopify has reserved /services/ URLs, however. Therefore I cannot redirect mydomain.com/services/some-services-page to mydomain.com/pages/some-services-page.
Additionally, I cannot change the URLs of the /pages/ pages to /services/ pages.
What would be the next best step here? It seems like a significant limitation of Shopify, as any pages you want to migrate from another CMS that have /services/, apparently can't be redirected, and you lose the SEO value. Those pages are now returning 404 and there doesn't seem to be anything I can do about it, or am I missing something?
I've had some back and forth with Shopify support, which ultimately ends with them saying its a limitation of Shopify and I should submit a feature request. I appreciate any advice you might have.
You can manually create redirects from old relative urls to new ones on shopify by going to [yourstore].myshopify.com/admin/redirects
If you want to track which pages customers are exactly hitting and getting 404's, you can use app Transportr:
https://apps.shopify.com/transportr
It tracks which pages are getting 404, and you can also create redirects directly from an app

how to redirect wp past site without wordpress pages

Client no longer wants Wordpress and wants new site in HTML5 CSS3. I have the past site map with links to past pages. Seeing he no longer has Wordpress how do you redirect the old wordpress pages without wordpress to new html pages. His links to old site are still active but goes no where seeing the pages are no longer on the server and have been down for two weeks. Small site 4 pages. Thanks Tim
Since you are using WordPress, I am guessing that this is hosted on a Linux server. If so, you are able to create 301 redirects using the .htaccess file.
Here is an example
Old page: http://www.example.com/contact-us
Going to new page: http://www.example.com/contact.html
RedirectMatch 301 ^/contact-us/?$ http://www.example.com/contact.html

Drupal URLs migrated to new WordPress installation

We have an existing Drupal site. That is going to be replaced with a WordPress site on the existing URL. However, there has been a lot of SEO done on the drupal URLs so a google search will return those old URL's. We want to redirect to the new corresponding URL in the Wordpress site. However, since the drupal site is no longer live on the existing domain, the old URL's will just return 404 and cannot be redirected since they are not relative to the WordPress root. Is there a way to do this? Do I need to get those old drupal site URLs into WordPress somehow?
First of all you need to update your sitemap and add canonical's for permanent redirections. This wont directly redirect the page, but will let the search engines know that the url for the page has been changed and hence will avoid loosing your search engine rankings.
Then for actually redirecting the page you will need to update your htaccess
Redirect 301 /folder/oldpage http://www.example.org/newpage
If there are lots of pages you should consider using a wordpress plugin called redirection. This way you dont have to update the htaccess manually, and it will also keep logs of all the 404 pages that users have found, so you can also keep an eye on logs for any missing pages and redirect them accordingly.

Can a NonWordpress Page on a Wordpress Based Site Cause Issues with Permalinks

I have a website built with Wordpress that has been having permalink issues. A few days ago, I had added a simple file, named qr.php, that I dropped in at the root level (where the wp-content and wp-upload folders reside). It has a script that redirect to pages outside of my website depending on what type of device the user is using. Basically, some one on a Apple device gets redirected to an itunes page, and droid user to the droid app store, etc.
Could this non Wordpress page be causing issues? I have had static or html pages in amonst my root level files before, and never had an issue. I feel like the redirects may change this.
Rather than using the qr.php(cutom redirect file) in your wordpress site. You can use a plugin which will help to redirect the external links.
Some of the plugins which might help you to achieve your purpose are Device Redirect - WordPress Phone &Tablet Redirect , RedirectPlus - Wordpress Mobile Redirect Plugin.
See the screenshots, try demo and check whether it fits your requirement.
No, it dont cause any issue with permalink..
I am also using a wordpress website : abc.com and a php based software integrated to admin folder on root.. And I can access easily abc.com and abc.com/newfolder/abc.php

Issues with redirect from .html pages to wordpress pages

here is my issue:
I have a static html site and under blog I have wordpress installed. Now I added a new database and installed a second wordpress that works perfectly, but I want to 301 redirect old .html pages to new ones so I can keep the links and rankings, but every time I try to change the .htaccess file my wordpress totally crashes and I have to re-install.
I just want to redirect dozen .html pages to new wp versions, example, I want to redirect www.site.com/page.html to www.site.com/page/
Can someone point me in the right direction?
Thanks
The easiest way to do this, is to use the redirection plugin for wordpress.
We used it when we converted an old static site and it works well and tracks the number of hit's etc.
http://wordpress.org/extend/plugins/redirection/

Resources