Forum Moderators: coopster & phranque

Message Too Old, No Replies

Modrewrite - changes to script needed?

Modrewrite - changes to script needed?

         

bsnrjones

5:24 am on Apr 1, 2003 (gmt 0)

10+ Year Member



I am starting to figure out how to use modrewrite to clean up dynamic URL's for a site using a pl script.

One big question I have is if there are any changes required to the script itself, or is everything handled before it is sent to the browser?

Please help me if you can! Thanks!

Burke

msr986

5:33 am on Apr 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Rewrite will not require any changes to your main script.

Try a WebmasterWorld site search for "mod rewrite". This will give you a ton of information on how to construct your Rewrite.

If you get totally stuck, we'll need an example URL to try to help you through.

Fischerlaender

8:58 am on Apr 1, 2003 (gmt 0)

10+ Year Member



One thing you possibly have to change are the links. But this depends on your script. If you link to script.pl?id=123 from within script.pl then you need to change this link to fake_123.htm or whatever you call your pseudo-static page.

If your script doesn't create any links to itself (or to other scripts), then you shouldn't have to change anything.