Mod rewrite Tutorials

overview - syntax - basic - medium - advanced

Mod Rewrite medium tutorials

Here we're going to learn how to combine the RewriteCond and the RewriteRule so we can do conditional rewrite. For you programmers out there you can use RewriteCond like an if statement.

  • Preventing 3rd party sites from using your images
  • Advanced 301 and 302 redirects using mod rewrite

<< mod rewrite syntax :: medium mod rewrites :: advanced rewrites >>

Questions that are answered here:

  • What is a rewritecond?
  • What can a rewritecond do?
  • How do I reference variables in query string with mod rewrite?
  • Can I use mod rewrite to enhance my site's security.
  • How do I deny access to 3rd party sites that are using my images.

On Page Resources

  1. Mod Rewrite - One of the many modules for the Apache web server. Uses regular expressions to detect and rewrite urls in real time.

  2. Apache Modules - List of moduldes that can be added or come with apache 1.3.

  3. Apache Server - Most popular web server used.

  4. Alias file - An alias or a proxy file is a file that is called to take the place of a requested uri. Most of the time the requested uri is a folder or file that does not exist on the server. For example we can say read index.htm (which doesn't exist as a real file) as index.php that does exist on the server.

  5. Dynamic url - A url that passes variables using the GET method. These variables are visible in the web browser and can be seen in the url. They follow any file or folder name and start with a ? and can use a & sign to denote a second, third variable and so on.
    Sample: file.php?var1=mod&var2=rewrite

  6. Static url - A file name and folder passed through the web browser.
    Sample: /mod-rewrite/index.php

  7. SEO - Acronymn for search engine optimiz(er/ation).

 

Mod Rewrite (Home) | Mod Rewrite Tutorials | Directory | Code Library | Blog | Mod Rewrite Quick Guide

copyright © 2001 - 2008 Webforgers.net
All rights reserved.