tags:

views:

41

answers:

2

If I use mod-rewrite to change a url like this:

http://www.mysite.com/page.php?title=my-name-is-john

to

http://www.mysite.com/page/my-name-is-john

and if the page.php file contains a script that relies on parameters passed through the url like:

$_GET['title'];

Then will that script still work after the mod-rewrite has been implemented?

+3  A: 

Yes, mod rewrite is transparent to the php scripts. So for the script it seems was just requested with the old url.

Ikke
+1  A: 

Yes. Your script will still work.

(ModRewrite is essentially transparent to PHP/and other CGIs you run.)

aharon