SEO Friendly URLs With Mod Rewrite in php MYSQL

Creating friendly URLs with mod_rewrite

This programming tutorial will teach you how to build search engine friendly URLs in PHP, which contain keywords and use HTML extensions. We are going to use the htaccess file and mod_rewrite module running on an Apache server.
More PHP Resource

Creating search engine friendly URLs in PHP is easier than some may think. First you need to make sure your server can read .htaccess files, and that you have the mod_rewrite Apache module installed. The majority of webhosts have mod_rewrite active and are ready for rewriting URLs.

If you're running PHP on a Windows server (IIS), I'm afraid this method of rewriting URLs will not work for you.

Rewriting URLs with a query string


Most of the time you'll probably want to create URLs based on pages returned from a (MySQL) database. Say you have the following pages:

More resources for PHP-friendly URLs:


Other Options


Post a Comment

3 Comments

  1. SEO friendly URLs are imperative yet key technique. It acts as SEO advantage as well as enable user know what a URL indicates.
    Thanks for sharing great info
    website security certificate | ssl certificate price | Dedicated Servers in India | cheap dedicated hosting india

    ReplyDelete
  2. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..
    Seo Agency Newyork

    ReplyDelete
  3. I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site.
    wordpress website security

    ReplyDelete