Monday, October 13, 2008

SEO: mod_rewrite and dynamic pages

Search engines don't really like urls that look like http://mysite.com/page.php?id=1&type=23.  Parameters in the URL throw off some search engines and others refuse to index such pages.  To get around this, and still keep your dynamic information, you can do with the mod_rewrite approach with Apache.

This solution is only for the Apache web server.  If you're using another server, such as Windows, you'll need to figure something else out.

The following link details how to use mod_rewrite to have urls that look like http://mysite.com/pages/mypage/mysubpage function like the url at the top.  http://www.workingwith.me.uk/articles/scripting/mod_rewrite

No comments: