Mod rewrite htaccess

lakiscy

Newbie
Joined
Sep 8, 2011
Messages
49
Reaction score
15
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:
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
 
Back
Top