•
•
•
•
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
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Web Developers' Lounge Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
adult advertising blog browser browsers browsing community data design development devices domains firefox google html india internet java legal linux marketing math merger microsoft mobile applications mozilla msn multimedia news php privacy report research search security sex social networking software technology users video w3c web web development wiki wikipedia xml yahoo youtube
- html/php form for .htaccess validation (PHP)
- Problem with .htaccess (Linux Servers and Apache)
- CGI + custom error pages... (Perl)
- Can I separate out two domains in the same hosting account with .htaccess ? (Linux Servers and Apache)
- security problem (Linux Servers and Apache)
- Random problem... cant access passworded sites (Windows NT / 2000 / XP / 2003)
- .htaccess not working.! (Linux Servers and Apache)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
Other Threads in the Web Developers' Lounge Forum
- Previous Thread: web development agencies' app of choice?
- Next Thread: Wap site and php site


Linear Mode