Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingOther Languages right
  Closed Topic Start new topic
left right
SiJ
post Mar 22 2010, 02:51 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 21-March 10
Member No.: 135,317



Hello,
My primary domain is [domain], and I have another domain [domain2], I have set the nameservers and everything, and now when I go to [domain] I want to see not the same thing as [domain2], but a directory /[domain_directory]/ in my site.
Support staff member said that I should do .htaccess file, but I don't understand anything about it.
Could someone make me a .htaccess file which would 'redirect' visitors coming from [domain] to /[domain_directory]/ directory?
Thanks.
Go to the top of the page 
 
  + Quote Post
Perry
post Mar 23 2010, 05:53 PM
Post #2


Ninja
***

Group: Members
Posts: 100
Joined: 14-October 07
Member No.: 1,335



CODE
Redirect 301 /page.html http://www.example.com/newpage.html


Create a .htaccess file and throw that code in there, upload to your root directory. Should accomplish what you need. cool.gif
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 20th June 2013 - 08:37 AM