PDA

View Full Version : Masking Domains (Frames or mod_rewrite)


JTStern
10-13-2006, 05:52 PM
Does anyone know how to mask a domain using either frames or mod_rewrite? If you do, can you please make a quick reply explaining it?

DPolley
10-13-2006, 06:42 PM
I think this may be what you are looking for. I hope this helps.

http://helpdesk.hostmonster.com/kb/index.php?x=&mod_id=2&root=13&id=152

Benjamin
10-13-2006, 06:46 PM
Try this:

<frameset>
<frame src="http://www.yoururl.com" width="1%">
<frame src="http://actual-url.example.com/page.html" width="99%">
</frameset>

Seb
10-14-2006, 07:08 AM
What's the point? They can find out either way.

WannabeArtist
10-14-2006, 08:45 AM
What's the point? They can find out either way.

While it of course got no value as a security aspect, at least two reasons remain: aesthetics and bookmarks.

stephen
10-15-2006, 03:39 AM
Jtstern;

You can also accomplish this using this in your htaccess;

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.ext$ [OR]
RewriteCond %{HTTP_HOST} ^www.yourdomain.ext$ [NC]
RewriteCond %{REQUEST_URI} !^/thedirectorynottobeseeninurl/
RewriteRule ^(.*)$ http://www.yourdomain.ext/thedirectorytonotbeseeninurl/$1

JTStern
10-15-2006, 09:10 AM
thanks stephen, so i just keep putting that in for all my pages?

EDIT::: Also, it does not work for me, so far. If I give you my site name, can you make me a .htaccess file?