Header Ads Widget

Ticker

6/recent/ticker-posts

How to Redirect Your Website Non-www to www URLs

You can redirect all of the requests for domain (domain.com) to (www.domain.com) by editing your website's .htaccess file in cPanel. You need to add the following code at the beginning of the file in order to setup that redirection in .htaccess file.
 
  • Open Cpanel
  • Opne public.html Folder
  • Open Your Site Folder (if You have multiple website)
  • edit .htaccess file and paste following Code

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]


Second Method for 301 redirect for page redirect


Redirect 301 /old-page https://wordpress.com/new-page

Redirect 301 /election-campiagn-management-services-india.html https://www.zivo.in/election-campaign-management-services-india.html


Third Method for 301 redirect for page redirect.

Create New Page with Old page name and paste below code in page.

 

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://wordpress.com/new-page">
</head>
<body>
</body>
</html>


 

Post a Comment

0 Comments