Hide inner URL
Moderator: General Moderators
Hide inner URL
Hi,
This is my first topic for DevNetwork.
Actually, i just want to show the URL for main page.
And hide the inner URL part.
For example,
I just want to show http://www.xyz.com.
But i am not getting how to do it.
Your suggestion would help me very much.
Thanks
This is my first topic for DevNetwork.
Actually, i just want to show the URL for main page.
And hide the inner URL part.
For example,
I just want to show http://www.xyz.com.
But i am not getting how to do it.
Your suggestion would help me very much.
Thanks
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Well, I know it's not the best suggestion ever, but perhaps you'd like working with a frame. That way you can keep the url in the addressbar 'www.xyz.com', as long as link within the frame. Just don't forget that this is probably _not_ what you want, since you will disallow your users to bookmark a certain page on your site, as well as breaking the 'back' functionality of their browser.
My suggestion: just leave the URL's with GET parameters, nobody looks at them.
My suggestion: just leave the URL's with GET parameters, nobody looks at them.
Ok, next question: why would you hide the GET parameter? That parameter comes from the client itself, so what's the point (security-wise) in hiding it? You could also use POST if you want "clean urls", but again, POST vars also come from the client. Even a hidden input field in a web form is plain text in the source code. PHP is server side, so isn't able to change anything on the client side.