URL renaming and rewriting can be one of the easiest and fastest ways to improve the search rankings and usability of your site. Many web organizations spend lots of hours on thinking over the best domain for themselves and for their clients. There are so many basics points that to look forward before purchasing the domain name. Those are:
After that all, they spend lots of money to purchase the one domain they really want. They go through all that trouble with the domain name but neglect all the URL’s elements after the domain name.
There is a technique called URL renaming or rewriting that can turn unattractive URLs into good ones without a lot more expenses on the domain name. In this article, we will explain you about that technique.
URL rewriting allows you to completely separate the URL from the resource. Most websites include variables in their URLs that explain the site what information to show the user. That would be so typical because, in that kind of structure, the URL is not at all memorable.
http://www.foods.com/show_a_product.php?product_id=5
Besides this, a much cleaner and shorter URL is easy to read and remember.
http://www.foods.com/products/5/
For URL renaming or rewriting, there are several platforms and tools online that provide you complete services. These tools help you to convert long dynamic URLs into short and static search engine friendly URLs. Some easy tools or platforms are:
Smallseotools.com
Webconfs.com
Seochat.com
Generateit.net
Theseotools.net
First, we need to create a text document called “.htaccess” to contain our rules. It must be named exactly and placed in the root directory of the server. There may already be a .htaccess file, we should edit that rather than overwrite it. That .htaccess file is a configuration file for the server. The server will throw errors if there are any errors in the file. Before transferring that file to the server using FTP make sure of using ASCII code rather than Binary.
The Rewrite Rule line has 5 parts:
RewriteEngine on #Turn on the rewriting engine
RewriteRule ^foods/?$ foods_info_01_02_2010.php [NC, L] #Handle request for “foods”
These are the simple methods of rewriting a URL.
Separate words with hyphens rather than underscore in the URL.
Use lowercase character because mostly people search in lowercase.
Turn punctuation such as dots and commas into hyphens.
Remove apostrophes and parentheses.
With this article, I am sure you have come to know what is exactly URL rewriting and how can you add this to your site. Basically, this would help you to improve your website’ ranking and appeal to search engines and customers respectively. We have tried our best to explain you some basic rules and provide the technical details for implementing it to your site. Please give your precious review about it.
- Relevant and appropriate domain name
- Sounds professional yet distinctive
- Easy to spell, remember and read over the mobile
- Looks good on business cards
- Available as dot-com
How To Perform Url Renaming & Rewriting |
After that all, they spend lots of money to purchase the one domain they really want. They go through all that trouble with the domain name but neglect all the URL’s elements after the domain name.
There is a technique called URL renaming or rewriting that can turn unattractive URLs into good ones without a lot more expenses on the domain name. In this article, we will explain you about that technique.
URL Rewriting
URL rewriting allows you to completely separate the URL from the resource. Most websites include variables in their URLs that explain the site what information to show the user. That would be so typical because, in that kind of structure, the URL is not at all memorable.
http://www.foods.com/show_a_product.php?product_id=5
Besides this, a much cleaner and shorter URL is easy to read and remember.
http://www.foods.com/products/5/
URL Rewriting Platforms and Tools
For URL renaming or rewriting, there are several platforms and tools online that provide you complete services. These tools help you to convert long dynamic URLs into short and static search engine friendly URLs. Some easy tools or platforms are:
How to Rewrite URLs
You can rewrite URL on a website depends on the web server. Those who are using Apache, then it would be quite easy to them because usually, Apache comes with the installed URL rewriting module mod_rewrite.First, we need to create a text document called “.htaccess” to contain our rules. It must be named exactly and placed in the root directory of the server. There may already be a .htaccess file, we should edit that rather than overwrite it. That .htaccess file is a configuration file for the server. The server will throw errors if there are any errors in the file. Before transferring that file to the server using FTP make sure of using ASCII code rather than Binary.
The Rewrite Rule line has 5 parts:
RewriteEngine on #Turn on the rewriting engine
RewriteRule ^foods/?$ foods_info_01_02_2010.php [NC, L] #Handle request for “foods”
- Rewrite Rule: Tells Apache that this refers to a single RewriteRule.
- ^/foods/?$: This is a pattern. The server will check the complete site to see if this pattern matches with any URL’s request.
- Foods_info_01_02_2010.php: It’s a substitution. Apache will use this URL instead of requested URL if the pattern above matches the request.
- [NC, L]: These are flags that tell Apache to how to perform the rule. NC flag tells Apache that this rule should be case-sensitive and L flag tells that not to use any more rules if this one is used.
- #handle request for “foods”: This is just a comment.
These are the simple methods of rewriting a URL.
Friendly URLs
Follow simple common rules for friendly URL, given below:With this article, I am sure you have come to know what is exactly URL rewriting and how can you add this to your site. Basically, this would help you to improve your website’ ranking and appeal to search engines and customers respectively. We have tried our best to explain you some basic rules and provide the technical details for implementing it to your site. Please give your precious review about it.
0 comments: