PDA

View Full Version : 301



Rusher
2010-10-07, 09:31 AM
How do you set up a 301 redirect on your web site?

suwunk
2010-10-07, 10:41 AM
if your site is hosted on a Linux Server you can use .htaccess for redirection
Redirect Old domain to New domain


Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]


Redirect to www


Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]


if your site is hosted on a Windows Server you can use IIS Redirect
*In internet services manager, right click on the file or folder you wish to redirect
*Select the radio titled "a redirection to a URL".
*Enter the redirection page
*Check "The exact url entered above" and the "A permanent redirection for this resource"
*Click on 'Apply'


You can also use server-side scripting for redirection

jimbaum
2011-01-09, 10:46 PM
Thank you for the above advice.

The below code you gave above worked for me in an .htaccess redirect.

Jim B.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

jeremya
2011-07-25, 10:05 AM
In a shared windows hosting account that does not have direct access to IIS, you can create a redirect using your web.config file in the root of your website. Create that file and insert the code mentioned here:
http://myhosting.com/kb/Create_301_redirects_in_onCloud

jeremya
2011-07-25, 10:05 AM
In a shared windows hosting account that does not have direct access to IIS, you can create a redirect using your web.config file in the root of your website. Create that file and insert the code mentioned here:
http://myhosting.com/kb/Create_301_redirects_in_onCloud

greenmatter
2011-08-05, 05:53 PM
an important point worth repeating twice :)

http://www.imgsnatch.com/img/n/9.jpg