Mywebdunia's Blog

Posts Tagged ‘seo freindly urls

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. Most of us we tend to change our url or move our page to some other location, by doing this our page rank gets affected. So to avoid this we have a best solution for this, that is 301 redirect. So you might be thinking how to do this 301 redirect.

How to redirect a webpage:

Redirect Using .htaccess

1. Create and .htaccess file, just open a notepad, name and save the file as .htaccess (there is no extension).

2. Place the following code into the .htaccess file:
redirect 301 /old/oldfile.htm http://www.youdomain.com/newfile.htm

3. Save the .htaccess file and upload it to the root folder.

IIS Redirect

1. In internet services manager, right click on the file or folder you wish to redirect
2. Select the radio titled “a redirection to a URL”.
3. Enter the redirection page
4. Check “The exact url entered above” and the “A permanent redirection for this resource”
5. Click on ‘Apply’

HTML Redirect

HTML Redirect can be done with .htaccess redirect if your site is hosted on a Linux Server and IIS Redirect, if your site is hosted on a Windows Server.

What is .htaccess :

When a visitor/spider requests a web page, your web server checks for a .htaccess file. The .htaccess file contains specific instructions for certain requests, including security, redirection issues and how to handle certain errors.

The 301 redirect is the safest way to redirect old web pages to the new pages or old web site to the new web site and keep the same search engine rankings. It will also pass on the page rank from your old site to your new site.

Whenever you develope any CMS based website, the important thing is to have search engine friendly URL’s. Because you might have seen some url’s like http://www.sitename.com/products/pid=23&id=2 such url’s are not search engine freindly most of the search engines doesn’t scan such things. So its better you make your url’s clean like http://www.sitename.com/products/x/y this makes search engine friendly.

To get this with Drupal there are some steps that need to be followed.

1. Assuming that you have alread installed Drupal, enable the Path module to enable this login into your administrative block. Once you are logged in click on Administrative link on the left menu and then click on the Modules link, scroll down the page and find the Path module check on the checkbox left of the module and save the settings.

2. The next step is to check for the clean URL’s  click on the Administrative link on the left menu and then click on Site Configuration and then click on the Clean URLs link  select the Enable radio button and save the settings.

Now go to the front end of your site and point the mouse over a link. In the status bar and in the address bar you will notice that all links will be in clean (human readable) format.


Categories