Forum Moderators: coopster

Message Too Old, No Replies

Using folder like urls to access areas of a site

Using folder like urls to access areas of a site

         

PSWorx

7:47 pm on Jul 18, 2006 (gmt 0)

10+ Year Member



Is it possible for php to interperate folder locations i.e. www.mydomain.com/myname (where /myname is the supposed folder location) like variables instead of using a bulky string like so: www.mydomain.com/?pageID=123

Also i noticed that when using header redirects for some reason it fails in all browsers other than IE when logging into my cms, i will find out more details about the problem and post them here but has anyone else had this issue before? I can refresh the page with the browsers refresh button/F5 and it will load as expected, its just the initial header redirect.

scriptmasterdel

8:18 pm on Jul 18, 2006 (gmt 0)

10+ Year Member



mod_rewrite is the way you want to go:

google it or search this site there is so much info about it

eeek

8:30 pm on Jul 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's no need for mod_rewrite complexity when you can just use PATH_INFO.

Philosopher

8:40 pm on Jul 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PATH_INFO will still require the script to be called to read the path info which in a case of a folder like URL no php script is actually being referenced.

I'd go with mod_rewrite as well.