| TRANSLATE: | |
|
|
|
|
|
|
|
|
|
Mod-Rewrite For SE Friendly URLs - A Practical ExamplePublished: Saturday 06 January, 2007
We get a lot of questions about how to use Mod-Rewrite on their Unix-Platform web site, so they can eliminate query expressions in their url and make it Search Engine Friendly. (From query.php?keywords=mod-rewrite to mod-rewrite.htm) The entire code, which is placed into your .htaccess file is: There are many variables available in Mod-Rewrite, but this should give you a basic format to begin with. And to give you something a little more advanced, we will leave you with the following mod-rewrite code. Understanding the above information should give you a good base of understanding from which to understand the following: Options +FollowSymLinks RewriteRule ([a-zA-Z?0-9]+)-([a-zA-Z?0-9]+)-([a-zA-Z?0-9]+)-([a-zA-Z?0-9]+)-([a-zA-Z?0-9]+)\.htm$ search.shtml?keywords=$1+$2+$3+$4+$5 |












