Forum Moderators: coopster

Message Too Old, No Replies

How to treat a GET like it's a page

         

sneaks

10:08 pm on Apr 10, 2008 (gmt 0)

10+ Year Member



How do you go about setting the server up so when yo call a php page it is in this format:

http://www.example.com/site_section/requested_page/

but from the way i understand it, 'requested_page' is actually a GET variable that calls the data (probably from a DB) so i guess you dont actually see the name of the php page that is displayed. it just looks like its all folders...

i like it, what is this concept called?

thanks!
jd

[edited by: dreamcatcher at 7:04 am (utc) on April 14, 2008]
[edit reason] Use example.com, thanks. [/edit]

MattAU

5:37 am on Apr 11, 2008 (gmt 0)

10+ Year Member



That's called URL rewriting - [en.wikipedia.org...]

It's fairly straight forward using .htaccess on an Apache server. There's 100s of sites with info on how to do it.

henry0

11:21 am on Apr 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not to mention many threads and helps here and in Apache server [webmasterworld.com]

jatar_k

3:24 pm on Apr 11, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



this is a good thread to start with
An Introduction to Redirecting URLs on an Apache Server [webmasterworld.com]

sneaks

9:58 pm on Apr 13, 2008 (gmt 0)

10+ Year Member



solid. all i needed was the terminology!

thx for the help! sorry it ended up in the wrong topic

snx