Subscribe

Add to Google

Recent Posts

Saturday, June 2, 2012

What is .htaccess file and how it helps for me

Are looking for how to redirecting your old site to new website domain?
They you must use search engine friendly method like use .htaccess file. If you are in development field then you must know this file. But you are SEO person and don’t know about it they don’t worry about it here you will get all information about how to tackle redirecting website.

.htaccess file is very popular these days because every one using this file for redirect old website to new website or rewriting URLs. If your website is like sub-domain and you want to convert to sub directory they you must use .htaccess file and also vise versa. .htaccess redirect is better than the Meta refresh or redirect tag because browser reads first .htaccess file and no delay happen as compare to meta refresh.

How .htaccess work:

What is redirects URL?

For example you want to old URL www.xyz.com to www.abc.com, this is called redirects URL.

What is rewriting URL?

This problem special is coming to Joomla based website or like dynamic site. For example you URL is www.xyz.com/food=/es.gp?pageid=170 and now you want to static website URL like www.xyz.com/food/cafe-entry.php this type of change you need to take help of .htaccess file editing.

What type of error coming in website?

400 – Bad request Error

401 – Authorization Required Error

403 – Forbidden Error

500 – Internal Server Error

404 – File not found error

These types of errors are coming from links, bookmarks and search engines. And it’s very embarrassing of website to show these type errors. SO first you need to solve these errors for returning of you visitor.

How to write .htaccess redirect URL:

Go to website root folder, download the .htaccess file to your computer and edit it with a plain-text editor it is Notepad file. If you are using FTP Client software and you don’t see any .htaccess file on your server, double check your setting and make sure you have turn on invisible / system files.

To Redirect Entire Site:

Redirect 301 / http://www.new-site.com/

To Redirect Certain Page(s):

Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html Redirect 301 /oldpage2.html http://www.yoursite.com/folder/

I hope this guideline help you to solve your website problems.

1 Comments:

i want to hide .php extension from url. i am using .htaccess file. but it not working, so please help me..thanks
Interstate Movers | Interstate Removals