Announcement

Collapse
No announcement yet.

How To Set Up 301 Redirection From .htaccess?

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Set Up 301 Redirection From .htaccess?

    WordPress Hosting on SSD Servers
    You can set many types of 301 redirection from .htaccess file. We have mentioned about olddomain to newdomain 301 redirection in this topic.

    For example, if you have a websitehttp://www.olddomain.com and wish to permanently forward users to http://www.newdomain.com when they browsehttp://www.olddomain.com on their browsers.

    Add following lines on the .htaccess file :

    RewriteEngine on
    RewriteCond %{http_host} ^olddomain.com [NC,OR]
    Rewritecond %{http_host} ^www.olddomain.com [nc]
    RewriteRule ^(.*)$ http://newdomain.com/$1 [r=301,nc]


    Accuwebhosting.com
    Last edited by admin; 07-30-2015, 05:48 AM.
Working...
X
Sign up for a News Letter Click here to sign up