• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

.htaccess and multiple domains

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    .htaccess and multiple domains

    I have two domains on my hosting package, one in the main /public_html folder and one in /public_html/domain2

    I want to set the .htaccess so that domain2 is accessible but domain 1 isn't.

    Can someone tell me what needs to be set? At the moment the .htaccess located in /public_html is set to deny all as a stop gap but this has taken domain2 off as well
    Originally posted by Stevie Wonder Boy
    I can't see any way to do it can you please advise?

    I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

    #2
    Originally posted by SimonMac View Post
    I have two domains on my hosting package, one in the main /public_html folder and one in /public_html/domain2

    I want to set the .htaccess so that domain2 is accessible but domain 1 isn't.

    Can someone tell me what needs to be set? At the moment the .htaccess located in /public_html is set to deny all as a stop gap but this has taken domain2 off as well
    You could try putting a .htaccess ( which allows access to all) under the domain2 folder as well.

    Ideally you need a structure public_html/domain1 and public_html/domain2
    Vote Corbyn ! Save this country !

    Comment


      #3
      Originally posted by fullyautomatix View Post
      You could try putting a .htaccess ( which allows access to all) under the domain2 folder as well.

      Ideally you need a structure public_html/domain1 and public_html/domain2
      I know ideally thats the case but my hosting account has a "main" domain with everything else hanging from it
      Originally posted by Stevie Wonder Boy
      I can't see any way to do it can you please advise?

      I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

      Comment


        #4
        Originally posted by SimonMac View Post
        I know ideally thats the case but my hosting account has a "main" domain with everything else hanging from it
        Well as domain 1 is not in use move everything in there up a level to /public_html/old while ensuring public_html/domain2 remains where it is.

        Its not a perfect solution but will stop domain 1 from being visible while keeping domain 2 visible.
        merely at clientco for the entertainment

        Comment

        Working...
        X