Click here to Skip to main content
11,802,442 members (70,928 online)
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 3: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 OriginalGriff 465
1 KrunalRohit 366
2 F-ES Sitecore 295
3 Sergey Alexandrovich Kryukov 241
4 Afzaal Ahmad Zeeshan 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web01 | 2.8.151002.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