hemant_verma200 0 Newbie Poster

Hi All,

I am new to web development and got this strange problem. I am trying create a friendly URL using .htaccess. But it doesn't make any difference. Apache does use .htaccess because I tried it with some junk in .htaccess. So I believe that something is wrong with my .htaccess file.

==========
Options +FollowSymLinks
RewriteEngine on
RewriteRule page-id-(.*)\.php$ page\page.php?id=$1
==========

Basically I would like to convert this:
http://localhost/longworth/page/page.php?id=2
to
http://localhost/longworth/page-id-2.php

Any help would be appreciated.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.