User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Web Developers' Lounge section within the Web Development category of DaniWeb, a massive community of 423,381 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,849 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Web Developers' Lounge advertiser: Programming Forums
Views: 436 | Replies: 0
Reply
Join Date: Nov 2007
Posts: 1
Reputation: hemant_verma200 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hemant_verma200 hemant_verma200 is offline Offline
Newbie Poster

Help .htaccess problem

  #1  
Nov 6th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Web Developers' Lounge Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Web Developers' Lounge Forum

All times are GMT -4. The time now is 12:44 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC