Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Domain Names for Sale


You are currently viewing our Domain Names for Sale as a guest. Please register to participate.
Login



 
Question-3 URLS-one site...
Old 04-18-2003, 08:03 PM Question-3 URLS-one site...
Junior Talker

Posts: 1
Trades: 0
OK. I'm not a knowledgeable webmaster, but I'm my own webmaster for my Real Estate site & I use Frontpage.

Question: Can I have one front (index) page for "EagleGlenRE" and another for "CoronasBestHomes" which are each customized to the URL but leading to the same basic site? To furthur complicate it, could my "home" link in the navigation structure return the "EagleGlen" to "EagleGlen" and the "Corona" back to "Corona"? If not, can I have a whatchmacallit...different cover page for each URL(with it's own meta tags, etc) that each open to the index page of the site?

Currently, they are just different URLS leading to the same site.

Thanks in advance for answers!
EagleGlenRE is offline
View Public Profile Visit EagleGlenRE's homepage!
 
 
Register now for full access!
Old 04-19-2003, 12:12 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
There are two ways to do this. Either you can use a bit of scripting (e.g. PHP) to customize the page. In PHP:
PHP Code:
$_SERVER['HTTP_HOST']; 
should contain the domain of the current site which has been requested. You could then process this to output the correct information.

Alternately, you could redirect using that, with a simple PHP page as your main page redirecting to the correct home page on the server.

The final option would be to use .htaccess. Create a .htaccess file in the main directory on your server and put the following code in it:
# redirect domain2.com to subdir
Code:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} domain2.com
RewriteCond %{REQUEST_URI} !subdirectory/
RewriteRule ^(.*)$ subdirectory/$1 [L]
replacing domain2.com and subdirectory with the appropriate information.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
View Public Profile
 
   

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10294 seconds with 12 queries