Clean URL with $_SERVER without mod_rewrite?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lauthiamkok
Forum Contributor
Posts: 153
Joined: Wed Apr 01, 2009 2:23 pm
Location: Plymouth, United Kingdom

Clean URL with $_SERVER without mod_rewrite?

Post by lauthiamkok »

Hi,

I have posted a thread before about cleaning URL with $_SERVER['PATH_INFO'], and knowing it is not a good one to clean URL. Which indices of $_SERVER is the best for cleaning URL then?

After all, does any one know what the idea behind using $_SERVER to clean the URL? I still cant get it yet after reading a few tips online...

These are the source I came across so far, does any one know of a better source or tutorial about cleaning the URL without actually has to worry about mod_rewrite?

http://www.tutorio.com/tutorial/php-alt ... y-urls.htm

Many thanks,
Lau
Last edited by lauthiamkok on Mon Apr 20, 2009 3:31 pm, edited 1 time in total.
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

Re: Clean URL with $_SERVER without mod_rewrite?

Post by jazz090 »

***** Please use complete words in your posts. We want everyone to be able to read all posts. *****

u wanna use md_rewirte u only need $_SERVER['PHP_SELF'] to get a cleaner url which i answerd in ur last post
Post Reply