Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: HTML PHP
I was wondering if it is possible to hide your URL from visitors on your site.
For example:
If my homepage URL is
How do I change that to for instance
I do not want to show the /pages/home.php for reasons like:
I might have a file download on the page and if a user can figure out that these files are for instance in /files/ then he can download it like that. Why is this n problem? Lets say the user needs to pay for the file or he needs to subscribe.
Long, useless story short. How do I do this?
Thanks in advance,
Posted 8-May-13 4:35am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Probably you are looking for the technique called URL rewriting:[^].
Please see:[^].
Christopher Smit at 8-May-13 9:53am
More closely to what I am looking for would be something like a cloak. There should be NOTHING after the
Just that.. Is that possible? Thank you for the tip on rewriting though :)
Sergey Alexandrovich Kryukov at 8-May-13 10:08am
Yes, but NOTHING means that only one URI is possible. To make at least one more URI, you would need to wrote at least SOMETHING after the last '/'... :-)
Christopher Smit at 8-May-13 10:15am
I found a way to do it by simple using <iframe> tag. But that is not what I want to do.. So I will go with the Rewrite instead.. Thanks for the help :)
Sergey Alexandrovich Kryukov at 8-May-13 10:19am
Of course this is not it. Hope you can get good results with URI rewriting.
Will you accept my answer formally then (green button)?
Christopher Smit at 8-May-13 10:20am
I have :) Enjoy your day
Sergey Alexandrovich Kryukov at 8-May-13 10:27am
I will try to. :-) Thank you, you too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 485
1 OriginalGriff 285
2 Peter Leow 260
3 Maciej Los 195
4 John C Rayan 162
0 Sergey Alexandrovich Kryukov 7,203
1 OriginalGriff 5,587
2 Peter Leow 4,097
3 Mika Wendelius 2,850
4 CHill60 2,818

Advertise | Privacy | Mobile
Web01 | 2.8.150224.1 | Last Updated 8 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100