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

iTrader Rating: 0 (View)
Posts: 1
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
Reply With Quote
View Public Profile Visit EagleGlenRE's homepage!
 
When You Register, These Ads Go Away!
Old 04-19-2003, 12:12 PM
david's Avatar
King Spam Talker

iTrader Rating: 0 (View)
Posts: 1,314
Location: Glasgow, UK
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.
__________________
Free Webmaster Help - Everything a webmaster needs - for free
Free-Webhosting.info - Free web hosts reviewed and rated
Web Hosting Hunt - Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile Visit david's homepage!
 
Reply     « Reply to Question-3 URLS-one site...
 

Thread Tools

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.15201 seconds with 12 queries