Forum Moderators: coopster

Message Too Old, No Replies

are these urls dynamic

         

Light_Gear

8:24 pm on Nov 15, 2006 (gmt 0)

10+ Year Member



index.php?page=getinvolved/getinvolved.php <-- would this be dynamicI

I am using the index.php to control the content of the website and using php to add the different content.

So when I link to pages i will get this for the url
site/index.php?page=getinvolved/getinvolved.php Now I want to make it to display it like:

index.php/getinvolved/getinvolved.php

does this make sense I am not sure..

eelixduppy

8:27 pm on Nov 15, 2006 (gmt 0)



With a url like this:

index.php?page=getinvolved/getinvolved.php

You can include it like this:


[url=http://us3.php.net/manual/en/function.include.php]include[/url]($_GET['page']);

*You want to VALIDATE the $_GET['page'] variable to make sure that it resides on your server, otherwise you are creating a security breach*

Also, here's a search [google.com] on the topic. :)

Light_Gear

8:53 pm on Nov 15, 2006 (gmt 0)

10+ Year Member



this part is working -->site/index.php?page=getinvolved/getinvolved.php

What I want to change is in the address bar it displays -> site/index.php?page=getinvolved/getinvolved.php

I would like it to display site/getinvolved/getinvolved.php

so it would change it i guess it would change dynamic url to look like a static

eelixduppy

8:54 pm on Nov 15, 2006 (gmt 0)



I'm sorry; I misunderstood you.

What you are looking for is mod_rewrite [httpd.apache.org], assuming you have Apache :)

You can get more help on this in the Apache Forum