301 Redirect from OpenCMS to Wordpress - wordpress

I just migrated a website from OpenCMS to Wordpress as its platform. What Im trying to now is redirect the pages one by one using .htaccess found in the cpanel.
Question is how do I redirect this url https://www.southville.edu.ph/opencms/opencms/Southville/v2/Webpages/ContactUs/ContactUsForm.jsp
to here
https://www.southville.edu.ph/contact-us/
I've tried adding this code below in the .htaccess
Redirect 301 /opencms/opencms/Southville/v2/Webpages/ContactUs/ContactUsForm.jsp https://southville.edu.ph/contact-us
but it wouldn't work. This is my first time migrating a website. Hopefully you guys can help me. Thanks so much!

Related

Redirect URL in Nginx

I recently migrated my website to Digital Ocean through the help of a Server Guy. I had good knowledge about .htacess apache rules but Nginx is realy difficult for me.
I had some files on my Wordpress site which have been deleted now. I want to permanently redirect those URLs to the homepage of my site.
Issue with the site: https://jobify.in
Status: Resolved
I have tried to add several codes in Nginx.conf and restarted the server but the redirection isn't taking place.
May be, I'm adding wrong codes. Kindly, help me to redirect these pages :)
For permanent redirects use return and use if conditions for conditional redirects
See here

redirects issue in wordpress multisite

Recently I configured my website for https and redirected http to https but now in google page speed, I am getting issue of Too many redirects!
Can be checked at: https://developers.google.com/speed/pagespeed/insights/?url=peterkentconsulting.com&tab=desktop
And Google explains: Your page has 2 redirects, site is wordpress multisite. Please help me to remove those redirects..
Thanks
Your http to https redirect is not working fine. You should configure all urls:
http://peterkentconsulting.com/
http://www.peterkentconsulting.com/
http://www.peterkentconsulting.com/index.php
to
https://www.peterkentconsulting.com/
Now as I see your site's all requests are first going to /index.php which wordpress redirects to / in its .htaccess.
You should directly redirect http://www.peterkentconsulting.com/ to https://www.peterkentconsulting.com/
solved by editing site url at wp_site and wp_options tables in database.

301 redirects from old URLS to new ones in Wordpress

I created a new website in Wordpress and I need to 301 all the old URLs to new pages on the new site. Site URL: georgiapivots.com here Old site can be found here: http://georgiapivots.tldealers.com/ please let me know How to get started
You could try the Wordpress plugin Simple 301 Redirects for this. Alternately, if you're on an apache environment you could add the following to the .htaccess file in the root directory of your old site:
Redirect 301 / http://georgiapivots.com/

301 redirect in htaccess not working as expected

I am trying to add a simple 301 redirect to a website's htaccess, but no redirection is occurring, nor am I encountering any errors--can anyone shed some light? The redirect would redirect people visiting an old blog post to a new page:
old blog post: https://www.horizonhomes-samui.com/horizon-homes-construction/
new page: https://www.horizonhomes-samui.com/construction/
The redirect code I'm using is:
Redirect 301 /horizon-homes-construction/ https://www.horizonhomes-samui.com/construction/
Possibly Relevant Info
My site is a Wordpress site.
I also tried adding a "RewriteEngine On" line to the top, but that did not resolve the issue.
The htaccess file I'm editing is located in my WordPress root directory (along with wp-content, wp-admin, index.php, etc).
The instructions I'm following for adding the 301 redirect are from this guide.
Thanks.
When you don't have a lot of control over the server, which is the case for a lot of wordpress sites, a plugin is better than trying to update the .htaccess file.
I am sure there are a lot of good plugins that do this. This one has worked for us.
https://wordpress.org/plugins/redirection/
With the help of my server admin, I ascertained why this 301 redirect was not working. It is because my site is on an Nginx server, so any redirects added to htaccess will not be read by the server. My server admin was able to add the redirects properly.

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.

Resources