Sponsored Links

Go Back   WebMasters.org Forums > Website Design & Development > Web Design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 10:16 AM
Gooner Gooner is offline
Junior Member
 
Join Date: Feb 2008
Posts: 1
Question Domain masking using htaccess

i have 2 domains hosted and pointing at the same domain but I would like the same url to show for both domains as they are actually the same site.

For example (these urls dont exist) I have www.domain-town.co.uk and www.domain-borough.co.uk They both point at the same hosting server and will both show the same site but with a different url in the browser.

For instance if you enter www.domain-town.co.uk it will bring the site up and show www.domain-town.co.uk as url in the browser if you enter www.domain-borough.co.uk it will bring the same site up and show www.domain-borough.co.uk as the url.

i would like both domains to do what they are doing now but only to show the www.domain-borough.co.uk url in the browser.

I do not want to do this with a redirect as search engines may penalise me for this. I have been told to do this using the .htaccess file but dont know what to put in it.

Please help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-26-2008, 08:09 PM
TheGamerX TheGamerX is offline
Senior Member
 
Join Date: Aug 2008
Posts: 106
Default

301 Redirect it.
__________________
My favorite kind of Online games are
MMORPG | MMO | Free MMORPG |Free MMO |
MMORPG News and MMO News Games like MapleStory and Warcraft are amazing . MMORPGs are fun because they're social. You interact with more people.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-04-2008, 09:47 PM
priyesh.iitd priyesh.iitd is offline
Member
 
Join Date: Nov 2008
Posts: 36
Default

Quote:
Originally Posted by Gooner View Post
i have 2 domains hosted and pointing at the same domain but I would like the same url to show for both domains as they are actually the same site.

For example (these urls dont exist) I have Website Suggestions and Website Suggestions They both point at the same hosting server and will both show the same site but with a different url in the browser.

For instance if you enter Website Suggestions it will bring the site up and show Website Suggestions as url in the browser if you enter Website Suggestions it will bring the same site up and show Website Suggestions as the url.

i would like both domains to do what they are doing now but only to show the Website Suggestions url in the browser.

I do not want to do this with a redirect as search engines may penalise me for this. I have been told to do this using the .htaccess file but dont know what to put in it.

Please help
There is no way other than redirect. If you want to "show" a different url in the address bar, then you have to tell the browser to "go to the new url", and that means redirect. There are many ways, .htaccess is one of them, but essentially it IS going to be redirect.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:31 AM.


Sponsored Links

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
vB Ad Management by =RedTyger=