Page to Page Redirect
Use this type if you want to redirect from one URL to another.
Copy this code to your files.
Redirect to www
Use this type if you want to redirect all pages of your website to www domain.
This type is only available with Apache .htaccess.
Directory to Directory Redirect
Use this type if you want to redirect all pages from one directory to another.
This type is only available with Apache .htaccess.
Domain to Domain Redirect
Use this type if you want to redirect all pages from one domain to another.
This type is only available with Apache .htaccess.
';
break;
}
break;
case "domain-domain":
txt = "Options +FollowSymLinks\nRewriteEngine on\nRewriteRule (.*) http://"+dest+"/$1 [R=301,L]";
break;
case "directory-directory":
txt = "RedirectMatch 301 "+src+"(.*) "+dest+"$1";
break;
case "www":
txt = "Options +FollowSymlinks\nRewriteEngine on\nrewritecond %{http_host} ^"+dest+" [nc]\nrewriterule ^(.*)$ http://www."+dest+"/$1 [r=301,nc]"
break;
default:
break;
}
resultArea.value = txt;
});
$('.redirect-result').on('click', function(){
this.focus();
this.select();
});
Htaccess Redirect Generator Tool
“Redirect Generator” service is used to create your personal redirect code. Use it for your website not to lose Google loyalty and search engine rank.
In most cases your website should use an .htaccess file.
Page to Page Redirect supports the following formats:
- .htaccess redirect
- html redirect
- Java script redirect
- PHP redirect
- ASP redirect
- ASP.net redirect