/    Sign up×
Community /Pin to ProfileBookmark

Hi all

Is there a way of keeping the base domain name all the time instead of it show the extended address with the pages you are going to?

e.g.

this:

[url]http://www.domainname.com/page2/folder4/subfolder8/file6.html[/url]

displays as:

[url]http://www.domainname.com[/url]

all the time.

I was told it could be done with .htaccess but I haven’t found any documentation on that.

Cheers
Chris

to post a comment
Full-stack Developer

7 Comments(s)

Copy linkTweet thisAlerts:
@rhsundergroundSep 21.2004 — www.cjb.net has cloaking for free.
Copy linkTweet thisAlerts:
@cybercampbellauthorSep 21.2004 — Thanks...I've seen those services but I'd like to use my own domain name that I've paid for.

can it be done?

Thanks

Chris
Copy linkTweet thisAlerts:
@AdamGundrySep 21.2004 — You can do it using a simple frameset, but it is a bad idea from a usability perspective. It prevents easy bookmarking of pages, and means users who reach your site from a search engine will experience it differently. Users are used to the URL reflecting where they are in the site, and that is what it should do - in as meaningful a way as possible. Cloaking doesn't make your site appear more professional, or have any other real advantages.

Adam
Copy linkTweet thisAlerts:
@MstrBobSep 21.2004 — You've been misinformed about the URL rewriting. On apache web servers, in the .htaccess or httpd.conf file, you can set up URI's that bring up specific pages. Such that, if you have a pages like:

http://www.yoursite.com/abc/realcool.php

it could become:

http://www.yoursite.com/abc/realcool

And you could also do different URI's a redirects. But what you talk about is completely breaking the URI system. Why are people obsessed with breaking the URI system?
Copy linkTweet thisAlerts:
@PeOfEoSep 22.2004 — [i]Originally posted by rhsunderground [/i]

[B]www.cjb.net has cloaking for free. [/B][/QUOTE]
it uses a frame... with bad invalid code. With asp or asp.net you can use server.transfer for your redirects, it will just output new html without changing the url bar at all. But you can't really use that for a normal hyperling... and you cant really use that anyway with php and apache (I do not know if php has an equiv for server.trnafer).
Copy linkTweet thisAlerts:
@rhsundergroundSep 22.2004 — really? didn't know that.
Copy linkTweet thisAlerts:
@rhsundergroundSep 22.2004 — please don't spam these forums.

thank you,

-administration
×

Success!

Help @cybercampbell spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...