Redirect 301 - htaccess or plugin? - wordpress

after a migration from a custom cms to WordPress I have about 1500 404 errors.
The old cms used to print the date into the post url and I have removed that and set a proper SEO url structure.
Now, since I need to create 301 redirect for all of them, each one by one, what is the best practice?
Should I insert them all into the htaccess file or managing them with a plugin?
Will all these redirections slow down the website?
Thank you all!

Both solutions will work but
1) .htaccess will have the best redirect speed because it is not part of WP.
2) Plugin will allow to use wp interface for editing but redirect a little bit slower (not critical)
Usually redirects don't slow down website speed tangibly

Related

WordPress domain redirection

Beginner question:
I need to perform a 301 redirect from one Wordpress site (domain), to another Wordpress domain, like this:
From:
http://mycompany.com
To:
http://mycompany.se
A problem is that I have no FTP credentials for my From-site. I can't reach the .htaccess file.
Is there a plugin to use? I have studied the Redirection plugin, but this one seems working on pages within the same domain only(?)
I guess I need to be careful, because if some plugin edits the .htaccess file and something breaks, I can't reach the file...
Thankful for any help!
Whit Redirection Plugin you can redirect a url from old to new website.
You can create and manage redirects quickly and easily without needing Apache or Nginx knowledge. If your WordPress supports permalinks then you can use Redirection to redirect any URL.
There is full support for regular expressions so you can create redirect patterns to match any number of URLs.
The plugin can also be configured to monitor when post or page permalinks are changed and automatically create a redirect to the new URL.
You can easily find multiple plugins to perform 301 redirection in wordpress,but if you want to edit .htaccess you can install the plugin called "WP htaccess control" https://wordpress.org/plugins/wp-htaccess-control/ .
Through this plugin you can edit the .hraccess file from admin side.
Thanks.

WordPress 301 redirects for 300 links to redirect in .htaccess?

my question is would it slow my website? I am migrating from a non WP CMS to a WP CMS which means there are quite a fair deal of links to redirect due to a different URL structure. I plan on doing my redirects as follows: Redirect 301 /old-page/ http://www.newwebsite.com/new-page/
I include that line below the # END WordPress.
So basically there will be roughly 300 lines of Redirect 301 ... in my .htaccess file.
Would this really slow down my site? I have to include all the 300 redirects and I'm using WP.
Thanks
Are you looking to redirect your entire site to a new domain or only migrating from a static site to CMS? What's your current permalink structure? Why are you planning to redirect it, you can customize your permalink structure in wordpress to fit your existing structure.

Redirect Ecwid URLs with fragment identifiers to new Woocommerce URL

I recently migrated a client's e-commerce site from Ecwid to WooCommerce. Ecwid's URL's use fragment identifiers which is now a problem as I can't set up a 301 redirect to the new URL using .htaccess. As I understand, everything past the # isn't accessible to .htaccess.
I'd like to try and preserve their SEO ranking as well as easily update all the old URLs to new.
There are dozens of Wordpress plugins which offer the ability to redirect pages, but I'm concerned I'll have the same issue. From what I've read Javascript redirects don't use the 301 response code, so search engines wouldn't know what the new URL is.
Is there any other way to redirect this:
example.com/products/#!/100-Cotton-Sash-Cord/p/19877065/category=4619310
to this?
example.com/shop/all-natural/100-cotton-sash-cord/
As you mentioned, everything after the # isn't processed by the server.
However, if your old site was previously indexed completely by Google, you can presumably pick the "ugly" URLs for the snapshot pages and redirect those?

Wordpress Permalink Structure 301 Redirect

Currently I am using Wordpress v3.4 and using the following Permalink Custom Structure
/%category%/%postname%-%post_id%.html
Now I want to remove .html from it so I did like this
/%post_id%/%postname%/
I want to 301 redirect from old structure to new one.
Does anyone have the solution or suggestion?
Just use Redirection WordPress plugin to manage 301 redirections, keep track of 404 errors, and generally tidy up any loose ends your site may have.
Honestly, you should have never had put the extension, honestly I am surprised that Wordpress allowed this. However, if you change the permalink structure, usually it updates all previous posts and pages. Is that not the case here?

setup 301 redirect for post slug change

I'm looking at moving from Wordpress to Octopress but I'm extremely skeptical about the whole post-slug url management. My current blog handles urls in this fashion:
myblog.com/post-id/post-slug
e.g.:
journal.kaush.co/283/recommended-mac-os-x-software-2011-2012
I understand Octopress has a url scheme as follows:
myblog.com/YYYY/MM/DD/post-slug
So if i have to setup 301 redirects, will this have to be done manually for every single page, or is there a more intelligent way to approach this?
Cheers
Update permalink structure first ( check this one) and use 301 redirect using this plugin.
Taking cue from Virtual Vagabond, i went the .htaccess route. Fortunately,another good soul on the internet has written a script for this. You can find the ruby script used to generate the .htaccess file here.

Resources