Accelerate your eCommerce ambitions with adeptCommerce Suite

SEO Egghead Consulting Group is a web development firm dedicated to creating custom, search-engine-optimized web site applications.

We specialize in eCommerce and content management web sites that not only render information beautifully to the human, but also satisfy the "third browser" - the search engine. To us, search engines are people too.

image description image description image description image description
Aug 31
image description
Author:
Jaimie Sirovich

This handy set of rules for mod_rewrite automatically redirects any URL ending in "/index.php" to the same URL ending in "/."  It works for the root directory as well as subdirectories.

RewriteCond %{THE_REQUEST} ^GET\ /.*/index\.(php|html)\ HTTP
RewriteRule (.*)index\.(php|html)$ /$1 [R=301,L]

For example, "http://www.example.com/subdirectory/index.php" would be redirected to "http://www.example.com/subdirectory/."

This eliminates one of the peskier canonicalization issues with relative ease.  It's a bit tricky because of the way mod_rewrite updates its variables during execution — hence the odd use of the variable {THE_REQUEST}.  If anyone knows an easier way or finds a problem with it, leave a comment. 

Tell an amigo:
  • Sphinn
  • Digg
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Facebook


Apr 27
image description
Author:
Jaimie Sirovich

Archived; click post to view.
Excerpt: I've seen many misconceptions about mod_rewrite.  I believe this is because most people in this industry know what it is, but aren't programmers, or don't understand the concepts well. First, I've seen people say mod_rewrite incurs major overhead. This may be true if you ask apes to write your regular expressions, and all of your expressions are PT (pass through) and execute every other expression in the list, so I don't know where that came from.Then there are the other people who think mod_rewrite is a revelation from God, a sort of third testament between SEOs and a higher entity.  This…

Tell an amigo:
  • Sphinn
  • Digg
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Facebook