URL Rewrites
Rewriting a URL means changing the way the URL is displayed in the browser. When a user lands on a page with a rewritten URL, the code behind that page doesn't change. In fact, the server still reads the original URL.URL Rewrite Process:
- User lands on new SEO'd URL
- Using mod_rewrite, ISAPI_Rewrite, etc. new URL points to old URL on the server
- Server calls the code from the old URL
- Page is displayed in browser, displaying the new URL
301 Redirect
Once the URL is rewritten, you want to make sure that the old URL 301 redirects to the new. This tells the search engines that any link juice the old URL had should now be given to the new URL. It also makes for a good user experience, rather than showing a 404 error page. The server is told URL A should now be URL B.301 Redirect Process:
- User lands on original URL
- Using code, mode_rewrite, etc. the 301 redirects URL to the new one, literally changing the URL that is displayed in the browser from the old to the new
- URL Rewrite process begins again
For more detailed information on rewrites and redirects, check out the following sites:
- Apache mod rewrite
- IIS - ISAPI_Rewrite
- URLRewriter.net - Open Source URL Rewriter for .NET / IIS / ASP.NET
- Creating 301 Redirects in various languages
No comments:
Post a Comment