URL rewrite modifications are one of the best ways to change a dynamic site query string into a static looking URL that is easily crawlable by the search engines. I am curious if anyone has some experience doing this with random scripts. I have a ton of php scripts installed on my sites and I can go ahead and pay someone to build me this script but if someone knows of a good one online, free or for sale I am interested. Thanks
.htaccess is my best friend now It really isn't that hard, just the regular expression nitty gritty. Examples: RewriteEngine on # FORCE WWW IN URL (my favorite one) RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L] # END FORCE WWW IN URL # change all php files to .do files # makes index.do actually refer to index.php rewriteRule ^([_0-9a-zA-Z-]*)\.do$ /$1.php # User Home Pages starting with a ~ # visting /~myusername actually changes to # /view_user.php?username=myusername RewriteRule ^~([_0-9a-zA-Z-]+)/?$ /view_user.php?username=$1 # Directories actually refering to category of something #/cat-food/ changes to # /directory.php?category=cat-food RewriteRule ^([_a-zA-Z0-9-]+)/?$ /directory.php?category=$1 Have fun
no url rewrite is done at .htaccess file and you have to set your anchors accordingly. for little example http://forums.digitalpoint.com/showthread.php?t=126691