Mod rewrite htaccess

Discussion in 'White Hat SEO' started by lakiscy, Dec 3, 2011.

  1. lakiscy

    lakiscy Newbie

    Joined:
    Sep 8, 2011
    Messages:
    47
    Likes Received:
    13
    Hello guys,

    I have the following structure of urls on my CMS

    domain dot com/index.php?link=company.php

    and i want to make them all shown as

    domain dot com/index-link-company.php.html

    So i should use the following to .htaccess file and all my urls will become friendly?

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule index-link-(.*)\.htm$ index.php?link=$1
     
    Last edited: Dec 3, 2011
  2. Rogul

    Rogul Newbie

    Joined:
    Jul 20, 2010
    Messages:
    35
    Likes Received:
    3
    why would you keep .php in your page name seems pointless.
    Htaccess looks close, do a test to find out, cant do any harm.. but u have forgotten the L in html