That would be using register_globals I believe.
I don't think register_globals can be used for this. It's mod rewrite you should use.
The following code will do what you asking for (not tested)
Put the code in the .htaccess file at the domain root.
Ah sorry, I was thinking of something else. Yes, you are right mod_rewrite will work for this.
If I have subdomain subdom.mydomain.com where I must put this htaccess in subdomain folder or in site root folder. I would like to use this option only in subdomain folder not in root folder. The second question is: Are any limitation of this because I was try htaccess on one other server but it is not working.
RewriteEngine has to be allowed to be used in the apache config. If that's allowed you should be able to use it,
How I can see is it allowed or not?
AOP Web Development
I think you can use it on subdomains to serve as root for as long as your hosting provider allow htaccess.
that code wil do everything???
i saw php pages that looks like this www.domain.com/index/page/123
i want to format may url like that instead of normal url.. how can i do that and please explain.. i look over some forum i cant find answers.. please help..
and btw, is that safe to use?
can u explain the code part??
read through this if you want to be able to make more difficult urls possible:
It's not really hard, and that page really tells a lot about it.