mod_rewrite

This is a discussion on mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; I whould use mod_rewrite and rewrite an url like http://localhost/url.php?test=4&prova=5 to http://...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-08-2003
Muppy
 
Posts: n/a
Default mod_rewrite

I whould use mod_rewrite and rewrite an url like
http://localhost/url.php?test=4&prova=5
to
http://localhost/test/prova.html
how can i do?

(I've already searched in past questions)

thanks
Andrea


  #2 (permalink)  
Old 12-08-2003
Justin Koivisto
 
Posts: n/a
Default Re: mod_rewrite

Muppy wrote:

> I whould use mod_rewrite and rewrite an url like
> http://localhost/url.php?test=4&prova=5
> to
> http://localhost/test/prova.html
> how can i do?


RewriteRule ^([^/]+)/([^/]+)\.html url.php?test=$1&prova=$2 [L,NS]

--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0