Skip to main content

What is url Rewriting?

If you are writing a letter to your institute , you would probably open your word sheet  and make a file named may be like lettertoinstitute.doc. The file may save in your documents directory with a full path like C:WindowsusersmaddyDocumentslettertoInstitute.doc. Single file path = Single Document.



Likewisely, If you are creating a institute website, You may create a page named page1.html, upload it  and click your browser to http://www.myinstitutesite.com/page1.html. One url=One resource. Now in this case, resource is physical webpage, but it may be a either page or product drawn from a CMS.

URL rewriting changes everything. It permits you to entirly seperate the URL from the resource. By URL rewriting, you may have http://www.myinstitute.com/aboutus.html taking the user to .../page1.html or to .../about-us/ or to ../about-this-website-and-me/ or to .../youll-never-find-out-about-me-hahaha-Xy3884/. Or to all of these.Its kind of shortcuts or symbolic links on your computer hard drive. One URL=One path to search a resource.

By URL rewriting, the URL and the resource which headed could be completely independent of each other . In practicle, Usually they arn't Independent, Usually URL contains some code or numeric or name which enables the CMS to look up the resource, And in actual theory, this is what URL rewriting gives: a Complete seperation. 

HOW TO REWRITE URLs: 

Whether you can implement URL rewriting on a website depends on the web server. Apache usually comes with the URL rewriting  module, mod_rewrite, already installed. all set-up is very common.

THE SIMPLEST CASE 

The simplest  case of URL rewriting is to rename a single static web page. To use Apache's URL rewriting function, you wiill need to create or edit the .htaccess file in your website's document root ( or, less commonly, in a subdirectory).












Comments

  1. I’ve been your silent reader for quite some time and now I’m delighted to say that I’m inspired by your articles. You have shared very valuable information and knowledge that people should recognise. Thank you for sharing. I would love to see more updates from you.

    seo optimisation

    ReplyDelete

Post a Comment

Popular posts from this blog

What is Keyword Effectiveness Index ( KEI)

KEI ( Keyword Effective Index )  is one of the quickest ways to find keywords that show potential -that is , those keywords which are likely to help your site attract more traffic. It looks a bit like this : Its a scaled metri, so you'll never see a KEI of more than 100.

Definition of Heading Tags

<h1> to <h6> tags used to define heading on a web page. HTML Tag Reference Tag                                               Description <html>                                        Defines an HTML document <body>                                        Defines the document's body <head>                                        Defines the documnets head element <h1> to <h6>                              Defines HTML headings