
10-28-2007, 09:12 PM
|
 |
Administrator
|
|
Join Date: Sep 2007
Posts: 1,254
|
|
301 Redirection
Hello,
Definition:
The number "301" means "moved permanently". You implement the 301 redirect by creating a .htaccess file.
Google treats www and non-www URLS’s differently and to solve this 301 Redirect method is used.
How To Create 301 Redirects :
Look for a filename called .htaccess in public_html.
If you can’t find it, you will need to create one, you can create in notepad, open it, name and savethe file as .htaccess ( with no extention )
Create a file and insert the script below :
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Save the file and upload it to the root folder of your server.
Test it by typing the domain without www on the browser address bar, hit enter and see if it changes to http://www.domain.com.
Hope that helps Questions or Queries, feel free to post here or PM me.
Thank You
Regards,
ZafarAhmed
|