Access GET Data (Query Strings) in htaccess mod_rewrite

Post Thumbnail of Access GET Data (Query Strings) in htaccess mod_rewrite

We were used to use RewriteRule to match a URL, and then rewrite it. However, RewriteRule will always ignore your query string (GET data) so we need to use RewriteCond in order to capture the values in the query string. This is the basic syntax: RewriteCond %{QUERY_STRING} pattern

Filed in Web Development
Posted on 9 July 2011 • 1 comment

Create SEO Friendly URLs With Htaccess Mod Rewrite in 3 Easy Steps

Post Thumbnail of Create SEO Friendly URLs With Htaccess Mod Rewrite in 3 Easy Steps

An example of SEO friendly URL can be seen in this page. Compare it with urls like http://mysite.com/?t=34 , you will find it easier to remember and the it also clearly tells you what this page is about. Furthermore, the words in the URL might match the search keywords, bringing more traffic from search engines.

Filed in SEO, Web Development
Posted on 18 November 2009 • 55 comments