How to redirect Your URL to Another URL without plugin

To redirect Home Page to another URL

  1. Log in to your site’s server using an FTP client or cPanel File Manager.
  2. Find the .htaccess file in the root directory of your WordPress installation. If you can’t see the file, make sure that you have enabled “Show Hidden Files” in your FTP client or file manager.
  3. Open the .htaccess file in a text editor.
  4. Add the following lines of code at the beginning of the file:

Home Page Redirect 

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} !.+
RewriteRule ^$ https://www.front.keenbech.com/ [L,R=301]
  1. Replace “http://www.keenbech.com/” with the URL that you want to redirect your homepage to.
  2. Save the .htaccess file and upload it back to your server.

Other Page Redirect  example 

redirect the URL “https://keenbech.com/store” to “https://foodsala.com/”

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} !.+
RewriteRule ^store$ https://www.front.keenbech.com/ [L,R=301]

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *